zsh: make resolve with no options only complete unresolved files
authorBrendan Cully <brendan@kublai.com>
Mon, 17 Nov 2008 11:45:38 -0800
changeset 7386 86bfd65532ac
parent 7385 8119c1a607c4
child 7387 7e9a15fa6c8f
child 7389 72f0e4ebd9e6
zsh: make resolve with no options only complete unresolved files
contrib/zsh_completion
--- a/contrib/zsh_completion	Sun Nov 16 20:56:55 2008 -0800
+++ b/contrib/zsh_completion	Mon Nov 17 11:45:38 2008 -0800
@@ -611,7 +611,8 @@
   _arguments -s -w : $_hg_global_opts \
   '(--list -l --mark -m --unmark -u)'{-l,--list}'[list state of files needing merge]:*:merged files:->resolve_files' \
   '(--mark -m --list -l --unmark -u)'{-m,--mark}'[mark files as resolved]:*:unresolved files:_hg_unresolved' \
-  '(--unmark -u --list -l --mark -m)'{-u,--unmark}'[unmark files as resolved]:*:resolved files:_hg_resolved'
+  '(--unmark -u --list -l --mark -m)'{-u,--unmark}'[unmark files as resolved]:*:resolved files:_hg_resolved' \
+  '*:file:_hg_unresolved'
 
   if [[ $state == 'resolve_files' ]]
   then