--- a/mercurial/commands.py Sun Mar 04 18:42:31 2007 +0100
+++ b/mercurial/commands.py Mon Mar 05 19:48:21 2007 +0100
@@ -275,9 +275,8 @@
if ui.quiet:
ui.write("%s\n" % t)
else:
- t = util.localsub(t, 30)
- t += " " * (30 - util.locallen(t))
- ui.write("%s %s:%s\n" % (t, -r, hexfunc(n)))
+ spaces = " " * (30 - util.locallen(t))
+ ui.write("%s%s %s:%s\n" % (t, spaces, -r, hexfunc(n)))
def bundle(ui, repo, fname, dest=None, **opts):
"""create a changegroup file
@@ -2474,9 +2473,8 @@
if ui.quiet:
ui.write("%s\n" % t)
else:
- t = util.localsub(t, 30)
- t += " " * (30 - util.locallen(t))
- ui.write("%s %s\n" % (t, r))
+ spaces = " " * (30 - util.locallen(t))
+ ui.write("%s%s %s\n" % (t, spaces, r))
def tip(ui, repo, **opts):
"""show the tip revision