branches unparseable output fix (issue1230)
authorStefano Tortarolo <stefano.tortarolo@gmail.com>
Sun, 20 Jul 2008 12:09:37 +0200
changeset 6814 88804fad71bc
parent 6813 e1d8e79d7c8f
child 6815 7d6622eaad08
branches unparseable output fix (issue1230)
mercurial/commands.py
--- a/mercurial/commands.py	Wed Jun 25 19:41:43 2008 +0100
+++ b/mercurial/commands.py	Sun Jul 20 12:09:37 2008 +0200
@@ -388,10 +388,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