# HG changeset patch # User Gregory Szorc # Date 1519680723 28800 # Node ID ab81e5a8fba5a23fd2fe1d14448fc007467426ea # Parent 1fa35ca345a59ab01ea3d2e145414b59f089837d 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 diff -r 1fa35ca345a5 -r ab81e5a8fba5 mercurial/phases.py --- 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