Mercurial > public > mercurial-scm > hg-stable
diff contrib/bash_completion @ 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 | 0c438fd25e6e |
line wrap: on
line diff
--- 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")) }