[PATCH 11 of 11] phases: make order of debug output 'removing unknown node' deterministic
Mads Kiilerich
mads at kiilerich.com
Wed Feb 19 19:43:35 CST 2014
# HG changeset patch
# User Mads Kiilerich <madski at unity3d.com>
# Date 1392860597 -3600
# Thu Feb 20 02:43:17 2014 +0100
# Node ID 8910254d3b4a30120f5b7b319ed355fea1af020c
# Parent 0c08463662aa82753923bb49575e6b9379dc9213
phases: make order of debug output 'removing unknown node' deterministic
diff --git a/mercurial/phases.py b/mercurial/phases.py
--- a/mercurial/phases.py
+++ b/mercurial/phases.py
@@ -258,7 +258,7 @@ class phasecache(object):
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(
More information about the Mercurial-devel
mailing list