phases: make order of debug output 'removing unknown node' deterministic
authorMads Kiilerich <madski@unity3d.com>
Thu, 20 Feb 2014 02:43:17 +0100
changeset 20550 1716a2671ec7
parent 20549 2025315cfb0c
child 20551 efae655fd363
phases: make order of debug output 'removing unknown node' deterministic
mercurial/phases.py
--- a/mercurial/phases.py	Thu Feb 20 02:39:01 2014 +0100
+++ b/mercurial/phases.py	Thu Feb 20 02:43:17 2014 +0100
@@ -258,7 +258,7 @@
         filtered = False
         nodemap = repo.changelog.nodemap # to filter unknown nodes
         for phase, nodes in enumerate(self.phaseroots):
-            missing = [node for node in nodes if node not in nodemap]
+            missing = sorted(node for node in nodes if node not in nodemap)
             if missing:
                 for mnode in missing:
                     repo.ui.debug(