Mercurial > hg
comparison mercurial/commands.py @ 6814:88804fad71bc
branches unparseable output fix (issue1230)
author | Stefano Tortarolo <stefano.tortarolo@gmail.com> |
---|---|
date | Sun, 20 Jul 2008 12:09:37 +0200 |
parents | 4fa7701918ed |
children | d8159dd15db3 e37fa751182a |
comparison
equal
deleted
inserted
replaced
6813:e1d8e79d7c8f | 6814:88804fad71bc |
---|---|
386 for isactive, node, tag in branches: | 386 for isactive, node, tag in branches: |
387 if (not active) or isactive: | 387 if (not active) or isactive: |
388 if ui.quiet: | 388 if ui.quiet: |
389 ui.write("%s\n" % tag) | 389 ui.write("%s\n" % tag) |
390 else: | 390 else: |
391 rev = str(node).rjust(32 - util.locallen(tag)) | 391 rev = str(node).rjust(31 - util.locallen(tag)) |
392 isinactive = ((not isactive) and " (inactive)") or '' | 392 isinactive = ((not isactive) and " (inactive)") or '' |
393 data = tag, rev, hexfunc(repo.lookup(node)), isinactive | 393 data = tag, rev, hexfunc(repo.lookup(node)), isinactive |
394 ui.write("%s%s:%s%s\n" % data) | 394 ui.write("%s %s:%s%s\n" % data) |
395 | 395 |
396 def bundle(ui, repo, fname, dest=None, **opts): | 396 def bundle(ui, repo, fname, dest=None, **opts): |
397 """create a changegroup file | 397 """create a changegroup file |
398 | 398 |
399 Generate a compressed changegroup file collecting changesets not | 399 Generate a compressed changegroup file collecting changesets not |