Mercurial > hg-stable
changeset 36482:ab81e5a8fba5
phases: write phaseroots deterministically
self.phaseroots is a list of sets of binary nodes.
Let's sort the nodes before writing so the phaseroots file is
written out deterministically.
Differential Revision: https://phab.mercurial-scm.org/D2468
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 26 Feb 2018 13:32:03 -0800 |
parents | 1fa35ca345a5 |
children | bfb4494f846d |
files | mercurial/phases.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/phases.py Sat Feb 17 11:19:52 2018 -0700 +++ b/mercurial/phases.py Mon Feb 26 13:32:03 2018 -0800 @@ -326,7 +326,7 @@ def _write(self, fp): for phase, roots in enumerate(self.phaseroots): - for h in roots: + for h in sorted(roots): fp.write('%i %s\n' % (phase, hex(h))) self.dirty = False