##// END OF EJS Templates
zsh_completion: complete files from `hg st -mar` for commit and diff...
av6 -
r39237:8ff14f8f default
parent child Browse files
Show More
@@ -245,10 +245,10 b' typeset -A _hg_cmd_globals'
245 _wanted files expl 'missing files' _multi_parts / status_files
245 _wanted files expl 'missing files' _multi_parts / status_files
246 }
246 }
247
247
248 _hg_modified() {
248 _hg_committable() {
249 typeset -a status_files
249 typeset -a status_files
250 _hg_status m
250 _hg_status mar
251 _wanted files expl 'modified files' _multi_parts / status_files
251 _wanted files expl 'modified, added or removed files' _multi_parts / status_files
252 }
252 }
253
253
254 _hg_resolve() {
254 _hg_resolve() {
@@ -570,7 +570,7 b' typeset -A _hg_cmd_globals'
570 '(--user -u)'{-u+,--user=}'[record user as commiter]:user:' \
570 '(--user -u)'{-u+,--user=}'[record user as commiter]:user:' \
571 '--amend[amend the parent of the working dir]' \
571 '--amend[amend the parent of the working dir]' \
572 '--close-branch[mark a branch as closed]' \
572 '--close-branch[mark a branch as closed]' \
573 '*:file:_hg_files'
573 '*:file:_hg_committable'
574 }
574 }
575
575
576 _hg_cmd_copy() {
576 _hg_cmd_copy() {
@@ -599,7 +599,7 b' typeset -A _hg_cmd_globals'
599 then
599 then
600 _hg_files
600 _hg_files
601 else
601 else
602 _hg_modified
602 _hg_committable
603 fi
603 fi
604 fi
604 fi
605 }
605 }
General Comments 0
You need to be logged in to leave comments. Login now