comparison mercurial/commands.py @ 4143:26314500a5e1

Don't truncate tag and branch names after 30 chars (introduced 73860ffbe798) with test added for a long (local) tag name.
author Thomas Arendsen Hein <thomas@intevation.de>
date Mon, 05 Mar 2007 19:48:21 +0100
parents ff08cebcd116
children 03e9c22a6489 30857b5779f8
comparison
equal deleted inserted replaced
4142:ba3e13306f70 4143:26314500a5e1
273 for r, n, t in l: 273 for r, n, t in l:
274 hexfunc = ui.debugflag and hex or short 274 hexfunc = ui.debugflag and hex or short
275 if ui.quiet: 275 if ui.quiet:
276 ui.write("%s\n" % t) 276 ui.write("%s\n" % t)
277 else: 277 else:
278 t = util.localsub(t, 30) 278 spaces = " " * (30 - util.locallen(t))
279 t += " " * (30 - util.locallen(t)) 279 ui.write("%s%s %s:%s\n" % (t, spaces, -r, hexfunc(n)))
280 ui.write("%s %s:%s\n" % (t, -r, hexfunc(n)))
281 280
282 def bundle(ui, repo, fname, dest=None, **opts): 281 def bundle(ui, repo, fname, dest=None, **opts):
283 """create a changegroup file 282 """create a changegroup file
284 283
285 Generate a compressed changegroup file collecting changesets not 284 Generate a compressed changegroup file collecting changesets not
2472 except KeyError: 2471 except KeyError:
2473 r = " ?:?" 2472 r = " ?:?"
2474 if ui.quiet: 2473 if ui.quiet:
2475 ui.write("%s\n" % t) 2474 ui.write("%s\n" % t)
2476 else: 2475 else:
2477 t = util.localsub(t, 30) 2476 spaces = " " * (30 - util.locallen(t))
2478 t += " " * (30 - util.locallen(t)) 2477 ui.write("%s%s %s\n" % (t, spaces, r))
2479 ui.write("%s %s\n" % (t, r))
2480 2478
2481 def tip(ui, repo, **opts): 2479 def tip(ui, repo, **opts):
2482 """show the tip revision 2480 """show the tip revision
2483 2481
2484 Show the tip revision. 2482 Show the tip revision.