[PATCH] branches unparseable output fix (issue1230)

Stefano Tortarolo stefano.tortarolo at gmail.com
Sun Jul 20 05:10:32 CDT 2008


# HG changeset patch
# User Stefano Tortarolo <stefano.tortarolo at gmail.com>
# Date 1216548577 -7200
# Node ID f9d62630c712da60fcf535e613cab5d50a7ebf0f
# Parent  2134d6c09432e4e3dbee18d93ec9242a332f7cdc
branches unparseable output fix (issue1230)

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -389,10 +389,10 @@
             if ui.quiet:
                 ui.write("%s\n" % tag)
             else:
-                rev = str(node).rjust(32 - util.locallen(tag))
+                rev = str(node).rjust(31 - util.locallen(tag))
                 isinactive = ((not isactive) and " (inactive)") or ''
                 data = tag, rev, hexfunc(repo.lookup(node)), isinactive
-                ui.write("%s%s:%s%s\n" % data)
+                ui.write("%s %s:%s%s\n" % data)
 
 def bundle(ui, repo, fname, dest=None, **opts):
     """create a changegroup file


More information about the Mercurial-devel mailing list