bash_completion: Use "hg paths -q" instead of piping through sed
authorThomas Arendsen Hein <thomas@intevation.de>
Mon, 16 May 2011 11:52:28 +0200
changeset 14332 a2f0f61a6988
parent 14331 3b9a896af09c
child 14333 31a5973fcf96
bash_completion: Use "hg paths -q" instead of piping through sed
contrib/bash_completion
--- a/contrib/bash_completion	Mon May 16 11:41:48 2011 +0200
+++ b/contrib/bash_completion	Mon May 16 11:52:28 2011 +0200
@@ -68,7 +68,7 @@
 
 _hg_paths()
 {
-    local paths="$(_hg_cmd paths | sed -e 's/ = .*$//')"
+    local paths="$(_hg_cmd paths -q)"
     COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$paths' -- "$cur"))
 }