Mercurial > public > mercurial-scm > hg-stable
diff mercurial/changelog.py @ 4848:5e365008360f
python 2.3 does not have sorted
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Fri, 06 Jul 2007 10:29:09 -0700 |
parents | 845e0071b704 |
children | 02b127749dc0 |
line wrap: on
line diff
--- a/mercurial/changelog.py Fri Jul 06 10:22:22 2007 -0700 +++ b/mercurial/changelog.py Fri Jul 06 10:29:09 2007 -0700 @@ -132,7 +132,9 @@ def encode_extra(self, d): # keys must be sorted to produce a deterministic changelog entry - items = [_string_escape('%s:%s' % (k, d[k])) for k in sorted(d)] + keys = d.keys() + keys.sort() + items = [_string_escape('%s:%s' % (k, d[k])) for k in keys] return "\0".join(items) def extract(self, text):