##// END OF EJS Templates
python 2.3 does not have sorted
Brendan Cully -
r4848:5e365008 default
parent child Browse files
Show More
@@ -286,7 +286,9 b' class convert_svn(converter_source):'
286 except IndexError:
286 except IndexError:
287 branch = None
287 branch = None
288
288
289 for path in sorted(orig_paths):
289 paths = orig_paths.keys()
290 paths.sort()
291 for path in paths:
290 # self.ui.write("path %s\n" % path)
292 # self.ui.write("path %s\n" % path)
291 if path == self.module: # Follow branching back in history
293 if path == self.module: # Follow branching back in history
292 ent = orig_paths[path]
294 ent = orig_paths[path]
@@ -132,7 +132,9 b' class changelog(revlog):'
132
132
133 def encode_extra(self, d):
133 def encode_extra(self, d):
134 # keys must be sorted to produce a deterministic changelog entry
134 # keys must be sorted to produce a deterministic changelog entry
135 items = [_string_escape('%s:%s' % (k, d[k])) for k in sorted(d)]
135 keys = d.keys()
136 keys.sort()
137 items = [_string_escape('%s:%s' % (k, d[k])) for k in keys]
136 return "\0".join(items)
138 return "\0".join(items)
137
139
138 def extract(self, text):
140 def extract(self, text):
General Comments 0
You need to be logged in to leave comments. Login now