##// END OF EJS Templates
zsh completion improvements....
Steve Borho -
r1484:840808c5 default
parent child Browse files
Show More
@@ -58,7 +58,7 b' fi'
58
58
59 case $service in
59 case $service in
60 (add)
60 (add)
61 newFiles=( $(hg status -un) )
61 newFiles=(${(ps:\0:)"$(hg status -0un .)"})
62 _arguments $includeExclude \
62 _arguments $includeExclude \
63 '*:file:->unknown'
63 '*:file:->unknown'
64 _wanted files expl 'unknown files' compadd -a newFiles
64 _wanted files expl 'unknown files' compadd -a newFiles
@@ -70,7 +70,7 b' case $service in'
70 ;;
70 ;;
71
71
72 (forget)
72 (forget)
73 addedFiles=( $(hg status -an) )
73 addedFiles=(${(ps:\0:)"$(hg status -0an .)"})
74 _arguments $includeExclude \
74 _arguments $includeExclude \
75 '*:file:->added'
75 '*:file:->added'
76 _wanted files expl 'newly added files' compadd -a addedFiles
76 _wanted files expl 'newly added files' compadd -a addedFiles
@@ -134,7 +134,7 b' case $service in'
134 ;;
134 ;;
135
135
136 (revert)
136 (revert)
137 addedFiles=( $(hg status -mrn) ) # modified, removed
137 addedFiles=(${(ps:\0:)"$(hg status -0amrn .)"})
138 _arguments \
138 _arguments \
139 '(--rev)-r[revision to revert to]:revision:($tags)' \
139 '(--rev)-r[revision to revert to]:revision:($tags)' \
140 '(-r)--rev[revision to revert to]:revision:($tags)' \
140 '(-r)--rev[revision to revert to]:revision:($tags)' \
@@ -145,7 +145,7 b' case $service in'
145 ;;
145 ;;
146
146
147 (commit|ci)
147 (commit|ci)
148 addedFiles=( $(hg status -amrn) ) # added, modified, removed
148 addedFiles=(${(ps:\0:)"$(hg status -0amrn .)"})
149 _arguments $includeExclude \
149 _arguments $includeExclude \
150 '(--addremove)-A[run addremove during commit]' \
150 '(--addremove)-A[run addremove during commit]' \
151 '(-A)--addremove[run addremove during commit]' \
151 '(-A)--addremove[run addremove during commit]' \
General Comments 0
You need to be logged in to leave comments. Login now