diff mercurial/commands.py @ 22704:386339ffe421

branches: merge white space to format string Diffs of test output should be harmless. A white space character is moved into "log.changeset" color region.
author Yuya Nishihara <yuya@tcha.org>
date Thu, 02 Oct 2014 23:13:56 +0900
parents bd6e95cb82b4
children d4869b280cd6
line wrap: on
line diff
--- a/mercurial/commands.py	Thu Oct 02 22:59:56 2014 +0900
+++ b/mercurial/commands.py	Thu Oct 02 23:13:56 2014 +0900
@@ -1123,9 +1123,7 @@
         fm.write('branch', '%s', tag, label=label)
         rev = ctx.rev()
         padsize = max(31 - len(str(rev)) - encoding.colwidth(tag), 0)
-        fmt = ' ' * padsize + '%d:%s'
-        if not ui.quiet:
-            fm.plain(' ')
+        fmt = ' ' * padsize + ' %d:%s'
         fm.condwrite(not ui.quiet, 'rev node', fmt, rev, hexfunc(ctx.node()),
                      label='log.changeset changeset.%s' % ctx.phasestr())
         if not ui.quiet: