Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/changelog.py @ 4835: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 |
comparison
equal
deleted
inserted
replaced
4834:845e0071b704 | 4835:5e365008360f |
---|---|
130 extra[k] = v | 130 extra[k] = v |
131 return extra | 131 return extra |
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): |
139 """ | 141 """ |
140 format used: | 142 format used: |