mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
Sort changelog extra dict to avoid possible nondeterminism
This commit is contained in:
parent
4750025032
commit
ee78cfbb39
@ -131,7 +131,8 @@ class changelog(revlog):
|
|||||||
return extra
|
return extra
|
||||||
|
|
||||||
def encode_extra(self, d):
|
def encode_extra(self, d):
|
||||||
items = [_string_escape(":".join(t)) for t in d.iteritems()]
|
# keys must be sorted to produce a deterministic changelog entry
|
||||||
|
items = [_string_escape('%s:%s' % (k, d[k])) for k in sorted(d)]
|
||||||
return "\0".join(items)
|
return "\0".join(items)
|
||||||
|
|
||||||
def extract(self, text):
|
def extract(self, text):
|
||||||
|
Loading…
Reference in New Issue
Block a user