comparison mercurial/commands.py @ 2035:107dc72880f8

Make 'hg tags -q' only list tag names without revision numbers and hashes, and change bash_completion to use this.
author Thomas Arendsen Hein <thomas@intevation.de>
date Sat, 01 Apr 2006 23:57:24 +0200
parents 5e7aff1b6ae1
children f90513a3dbcd
comparison
equal deleted inserted replaced
2034:5e7aff1b6ae1 2035:107dc72880f8
2689 for t, n in l: 2689 for t, n in l:
2690 try: 2690 try:
2691 r = "%5d:%s" % (repo.changelog.rev(n), hex(n)) 2691 r = "%5d:%s" % (repo.changelog.rev(n), hex(n))
2692 except KeyError: 2692 except KeyError:
2693 r = " ?:?" 2693 r = " ?:?"
2694 ui.write("%-30s %s\n" % (t, r)) 2694 if ui.quiet:
2695 ui.write("%s\n" % t)
2696 else:
2697 ui.write("%-30s %s\n" % (t, r))
2695 2698
2696 def tip(ui, repo, **opts): 2699 def tip(ui, repo, **opts):
2697 """show the tip revision 2700 """show the tip revision
2698 2701
2699 Show the tip revision. 2702 Show the tip revision.