contrib/bash_completion
changeset 2035 107dc72880f8
parent 2034 5e7aff1b6ae1
child 2039 0c438fd25e6e
--- a/contrib/bash_completion
+++ b/contrib/bash_completion
@@ -29,8 +29,8 @@ shopt -s extglob
 
 _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"))
 }