# HG changeset patch # User Thomas Arendsen Hein # Date 1143928644 -7200 # Node ID 107dc72880f801c424e99108e869fdd579661712 # Parent 5e7aff1b6ae1e5b90e9e1a42ecf3f90149661b6e Make 'hg tags -q' only list tag names without revision numbers and hashes, and change bash_completion to use this. diff -r 5e7aff1b6ae1 -r 107dc72880f8 contrib/bash_completion --- a/contrib/bash_completion Sat Apr 01 22:50:12 2006 +0200 +++ b/contrib/bash_completion Sat Apr 01 23:57:24 2006 +0200 @@ -29,8 +29,8 @@ _hg_tags() { - local tags="$("$hg" tags 2>/dev/null | - sed -e 's/[0-9]*:[a-f0-9]\{40\}$//; s/ *$//')" + local tags="$("$hg" tags -q 2>/dev/null)" + local IFS=$'\n' COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$tags' -- "$cur")) } diff -r 5e7aff1b6ae1 -r 107dc72880f8 mercurial/commands.py --- a/mercurial/commands.py Sat Apr 01 22:50:12 2006 +0200 +++ b/mercurial/commands.py Sat Apr 01 23:57:24 2006 +0200 @@ -2691,7 +2691,10 @@ r = "%5d:%s" % (repo.changelog.rev(n), hex(n)) except KeyError: r = " ?:?" - ui.write("%-30s %s\n" % (t, r)) + if ui.quiet: + ui.write("%s\n" % t) + else: + ui.write("%-30s %s\n" % (t, r)) def tip(ui, repo, **opts): """show the tip revision