Skip to content
Snippets Groups Projects
Commit ab81e5a8 authored by Gregory Szorc's avatar Gregory Szorc
Browse files

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
parent 1fa35ca3
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment