[PATCH] bookmarks: respect --debug during incoming/outgoing

David Soria Parra dsp at php.net
Wed Jan 25 13:15:10 CST 2012


# HG changeset patch
# User David Soria Parra <dsp at php.net>
# Date 1327518226 -3600
# Node ID 5b84edd36f34cac860d40a6e7e1cac1cd0f6ddd6
# Parent  878bc4a62a735a1624e9b69c672d5fb5074d4855
bookmarks: respect --debug during incoming/outgoing

diff -r 878bc4a62a73 -r 5b84edd36f34 mercurial/bookmarks.py
--- a/mercurial/bookmarks.py	Thu Jan 19 14:31:05 2012 -0600
+++ b/mercurial/bookmarks.py	Wed Jan 25 20:03:46 2012 +0100
@@ -221,7 +221,8 @@
 
     diff = sorted(set(rmarks) - set(lmarks))
     for k in diff:
-        ui.write("   %-25s %s\n" % (k, rmarks[k][:12]))
+        mark = ui.debugflag and rmarks[k] or rmarks[k][:12]
+        ui.write("   %-25s %s\n" % (k, mark))
 
     if len(diff) <= 0:
         ui.status(_("no changed bookmarks found\n"))


More information about the Mercurial-devel mailing list