D2468: phases: write phaseroots deterministically

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Tue Feb 27 07:57:06 EST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGab81e5a8fba5: phases: write phaseroots deterministically (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2468?vs=6146&id=6166

REVISION DETAIL
  https://phab.mercurial-scm.org/D2468

AFFECTED FILES
  mercurial/phases.py

CHANGE DETAILS

diff --git a/mercurial/phases.py b/mercurial/phases.py
--- a/mercurial/phases.py
+++ b/mercurial/phases.py
@@ -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
 



To: indygreg, #hg-reviewers, yuja
Cc: mercurial-devel


More information about the Mercurial-devel mailing list