Mercurial > public > mercurial-scm > hg
diff mercurial/commands.py @ 3773:b1eeaeb936ae
Handle transcoding of branch names
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 03 Dec 2006 16:16:33 -0600 |
parents | 73860ffbe798 |
children | a88e02081a88 |
line wrap: on
line diff
--- a/mercurial/commands.py Sun Dec 03 16:16:33 2006 -0600 +++ b/mercurial/commands.py Sun Dec 03 16:16:33 2006 -0600 @@ -273,7 +273,9 @@ 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