Mercurial > public > mercurial-scm > hg
diff contrib/zsh_completion @ 7386:86bfd65532ac
zsh: make resolve with no options only complete unresolved files
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Mon, 17 Nov 2008 11:45:38 -0800 |
parents | 62b75d73c33d |
children | 05010666fb19 |
line wrap: on
line diff
--- 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