Mercurial > public > mercurial-scm > hg
comparison mercurial/phases.py @ 20550:1716a2671ec7
phases: make order of debug output 'removing unknown node' deterministic
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Thu, 20 Feb 2014 02:43:17 +0100 |
parents | 7d5e7799a29f |
children | 793f9276aeb9 |
comparison
equal
deleted
inserted
replaced
20549:2025315cfb0c | 20550:1716a2671ec7 |
---|---|
256 Nothing is lost as unknown nodes only hold data for their descendants. | 256 Nothing is lost as unknown nodes only hold data for their descendants. |
257 """ | 257 """ |
258 filtered = False | 258 filtered = False |
259 nodemap = repo.changelog.nodemap # to filter unknown nodes | 259 nodemap = repo.changelog.nodemap # to filter unknown nodes |
260 for phase, nodes in enumerate(self.phaseroots): | 260 for phase, nodes in enumerate(self.phaseroots): |
261 missing = [node for node in nodes if node not in nodemap] | 261 missing = sorted(node for node in nodes if node not in nodemap) |
262 if missing: | 262 if missing: |
263 for mnode in missing: | 263 for mnode in missing: |
264 repo.ui.debug( | 264 repo.ui.debug( |
265 'removing unknown node %s from %i-phase boundary\n' | 265 'removing unknown node %s from %i-phase boundary\n' |
266 % (short(mnode), phase)) | 266 % (short(mnode), phase)) |