[PATCH] phases: fix a non-standard debug message

0 views
Skip to first unread message

Greg Ward

unread,
Mar 21, 2012, 8:36:15 PM3/21/12
to mercuri...@selenic.com
# HG changeset patch
# User Greg Ward <gr...@gerg.ca>
# Date 1329345021 18000
# Branch stable
# Node ID 9670e0c88deee8dcfe45ddb3010696928b835fec
# Parent 2338ab19b23690e74e1ba3936667399dfeb9490c
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

diff --git a/mercurial/phases.py b/mercurial/phases.py
--- a/mercurial/phases.py
+++ b/mercurial/phases.py
@@ -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

_______________________________________________
Mercurial-devel mailing list
Mercuri...@selenic.com
http://selenic.com/mailman/listinfo/mercurial-devel

Reply all
Reply to author
Forward
0 new messages