Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
2034:5e7aff1b6ae1 | 2035:107dc72880f8 |
---|---|
27 COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$files' -- "$cur")) | 27 COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$files' -- "$cur")) |
28 } | 28 } |
29 | 29 |
30 _hg_tags() | 30 _hg_tags() |
31 { | 31 { |
32 local tags="$("$hg" tags 2>/dev/null | | 32 local tags="$("$hg" tags -q 2>/dev/null)" |
33 sed -e 's/[0-9]*:[a-f0-9]\{40\}$//; s/ *$//')" | 33 local IFS=$'\n' |
34 COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$tags' -- "$cur")) | 34 COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$tags' -- "$cur")) |
35 } | 35 } |
36 | 36 |
37 # this is "kind of" ugly... | 37 # this is "kind of" ugly... |
38 _hg_count_non_option() | 38 _hg_count_non_option() |