Patchwork D2468: phases: write phaseroots deterministically

login
register
mail settings
Submitter phabricator
Date Feb. 27, 2018, 12:57 p.m.
Message ID <4b763b5b5687482352276bdd6bcf100e@localhost.localdomain>
Download mbox | patch
Permalink /patch/28450/
State Not Applicable
Headers show

Comments

phabricator - Feb. 27, 2018, 12:57 p.m.
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




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

Patch

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