changeset 16293:bc1d949261c4 stable

phases: fix a non-standard debug message - add missing newline - ditch gratuitous use of string formatting with dict - fix so it actually does string formatting ('%' rather than ',') - inline unnecessary local variable - downcase first word
author Greg Ward <greg@gerg.ca>
date Wed, 15 Feb 2012 17:30:21 -0500
parents 101c8a1befb1
children 795d591b6ef5
files mercurial/phases.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/phases.py	Sat Mar 24 22:13:17 2012 -0500
+++ b/mercurial/phases.py	Wed Feb 15 17:30:21 2012 -0500
@@ -148,8 +148,9 @@
         missing = [node for node in nodes if node not in nodemap]
         if missing:
             for mnode in missing:
-                msg = 'Removing unknown node %(n)s from %(p)i-phase boundary'
-                repo.ui.debug(msg, {'n': short(mnode), 'p': phase})
+                repo.ui.debug(
+                    'removing unknown node %s from %i-phase boundary\n'
+                    % (short(mnode), phase))
             nodes.symmetric_difference_update(missing)
             repo._dirtyphases = True