comparison src/com/tmate/hgkit/ll/Changeset.java @ 54:fd4f2c98995b

Correct split symbol for extra metadata
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Sun, 16 Jan 2011 05:21:09 +0100
parents 26e3eeaa3962
children 19e9e220bf68
comparison
equal deleted inserted replaced
52:30bd38978846 54:fd4f2c98995b
138 if (_extras == null) { 138 if (_extras == null) {
139 _extrasMap = Collections.singletonMap("branch", "default"); 139 _extrasMap = Collections.singletonMap("branch", "default");
140 } else { 140 } else {
141 _extrasMap = new HashMap<String, String>(); 141 _extrasMap = new HashMap<String, String>();
142 for (String pair : _extras.split("\00")) { 142 for (String pair : _extras.split("\00")) {
143 int eq = pair.indexOf('='); 143 int eq = pair.indexOf(':');
144 // FIXME need to decode key/value, @see changelog.py:decodeextra 144 // FIXME need to decode key/value, @see changelog.py:decodeextra
145 _extrasMap.put(pair.substring(0, eq), pair.substring(eq+1)); 145 _extrasMap.put(pair.substring(0, eq), pair.substring(eq+1));
146 } 146 }
147 if (!_extrasMap.containsKey("branch")) { 147 if (!_extrasMap.containsKey("branch")) {
148 _extrasMap.put("branch", "default"); 148 _extrasMap.put("branch", "default");