fixed bash_completion

TK Soh teekaysoh at yahoo.com
Sun Aug 28 19:30:54 CDT 2005


The global options section of help has been relayout.

# HG changeset patch
# User TK Soh <teekaysoh at yahoo.com>
# Node ID 1e1174f430499e6d45d01da6e0f126249431c184
# Parent  a33a7a543803c7383a6918b19797bf9fd6b83e8e
bash_completion: fixed global options

diff -r a33a7a543803 -r 1e1174f43049 contrib/bash_completion
--- a/contrib/bash_completion   Sun Aug 28 06:45:27 2005
+++ b/contrib/bash_completion   Mon Aug 29 00:34:08 2005
@@ -73,7 +73,7 @@
     done
 
     if [[ "$cur" == -* ]]; then
-       opts="$(hg -v help | sed -e '1,/^global options/d; /^ -/!d')"
+       opts="$(hg -v help | sed -e '1,/^global options/d; /^ \{1,\}-/!d')"
 
        if [ -n "$cmd" ]; then
            opts="$opts $(hg help "$cmd" | sed -e '/^ -/!d; s/ [^-][^ ]*//')"



		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 


More information about the Mercurial mailing list