[PATCH 1 of 7 phases V2] phases: remove underbar into target_phase argument

Pierre-Yves David pierre-yves.david at ens-lyon.org
Thu Nov 10 17:26:04 CST 2011


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
# Date 1320883688 -3600
# Node ID 81f0b3828a94019e1b51142ec71cc2d6977298fc
# Parent  f520c9616db5cfa5f16d997e73680a3b6ceb0583
phases: remove underbar into target_phase argument

diff --git a/mercurial/phases.py b/mercurial/phases.py
--- a/mercurial/phases.py
+++ b/mercurial/phases.py
@@ -58,13 +58,13 @@
             nodes.symmetric_difference_update(missing)
             repo._dirtyphases = True
 
-def moveboundary(repo, target_phase, nodes):
+def moveboundary(repo, targetphase, nodes):
     """Add nodes to a phase changing other nodes phases if necessary.
 
     Simplify boundary to contains phase roots only."""
 
     # move roots of lower states
-    for phase in xrange(target_phase + 1, len(allphases)):
+    for phase in xrange(targetphase + 1, len(allphases)):
         # filter nodes that are not in a compatible phase already
         # XXX rev phase cache might have been invalidated by a previous loop
         # XXX we need to be smarter here


More information about the Mercurial-devel mailing list