mercurial/commands.py
changeset 3774 b1eeaeb936ae
parent 3773 73860ffbe798
child 3775 a88e02081a88
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -273,7 +273,9 @@ def branches(ui, repo):
         if ui.quiet:
             ui.write("%s\n" % t)
         else:
-            ui.write("%-30s %s:%s\n" % (t, -r, hexfunc(n)))
+            t = util.localsub(t, 30)
+            t += " " * (30 - util.locallen(t))
+            ui.write("%s %s:%s\n" % (t, -r, hexfunc(n)))
 
 def bundle(ui, repo, fname, dest=None, **opts):
     """create a changegroup file