comparison mercurial/commands.py @ 3774: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
comparison
equal deleted inserted replaced
3773:73860ffbe798 3774:b1eeaeb936ae
271 for r, n, t in l: 271 for r, n, t in l:
272 hexfunc = ui.debugflag and hex or short 272 hexfunc = ui.debugflag and hex or short
273 if ui.quiet: 273 if ui.quiet:
274 ui.write("%s\n" % t) 274 ui.write("%s\n" % t)
275 else: 275 else:
276 ui.write("%-30s %s:%s\n" % (t, -r, hexfunc(n))) 276 t = util.localsub(t, 30)
277 t += " " * (30 - util.locallen(t))
278 ui.write("%s %s:%s\n" % (t, -r, hexfunc(n)))
277 279
278 def bundle(ui, repo, fname, dest=None, **opts): 280 def bundle(ui, repo, fname, dest=None, **opts):
279 """create a changegroup file 281 """create a changegroup file
280 282
281 Generate a compressed changegroup file collecting changesets not 283 Generate a compressed changegroup file collecting changesets not