Submitter | Gregory Szorc |
---|---|
Date | April 14, 2017, 7:44 a.m. |
Message ID | <283a95fe4ce5b91af4e2.1492155846@ubuntu-vm-main> |
Download | mbox | patch |
Permalink | /patch/20195/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/phases.py b/mercurial/phases.py --- a/mercurial/phases.py +++ b/mercurial/phases.py @@ -116,6 +116,7 @@ from . import ( error, smartset, txnutil, + util, ) allphases = public, draft, secret = range(3) @@ -386,7 +387,8 @@ def retractboundary(repo, tr, targetphas def listphases(repo): """List phases root for serialization over pushkey""" - keys = {} + # Use ordered dictionary so behavior is deterministic. + keys = util.sortdict() value = '%i' % draft for root in repo._phasecache.phaseroots[draft]: keys[hex(root)] = value