summaryrefslogtreecommitdiffstats
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2014-06-09 09:50:37 +0100
committerPeter Stephenson <pws@zsh.org>2014-06-09 09:50:37 +0100
commit6336347c9e02ebae565b2d62987d1052bcba5567 (patch)
treec57790ed50fa12ab04733286bd10990d59fb13d0 /Completion/Unix/Command
parent32755: move incorrectly placed line in grammar.yo (diff)
parent32737, 32736 (32741), 32735, 32734, 32733, 32732 (32739): Strict compilation (diff)
downloadzsh-6336347c9e02ebae565b2d62987d1052bcba5567.tar
zsh-6336347c9e02ebae565b2d62987d1052bcba5567.tar.gz
zsh-6336347c9e02ebae565b2d62987d1052bcba5567.tar.bz2
zsh-6336347c9e02ebae565b2d62987d1052bcba5567.tar.lz
zsh-6336347c9e02ebae565b2d62987d1052bcba5567.tar.xz
zsh-6336347c9e02ebae565b2d62987d1052bcba5567.tar.zst
zsh-6336347c9e02ebae565b2d62987d1052bcba5567.zip
fix my own merge conflict with grammar changes
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_hg12
1 files changed, 11 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_hg b/Completion/Unix/Command/_hg
index f48598278..c18500bcb 100644
--- a/Completion/Unix/Command/_hg
+++ b/Completion/Unix/Command/_hg
@@ -226,6 +226,16 @@ _hg_modified() {
_wanted files expl 'modified files' _multi_parts / status_files
}
+_hg_committable() {
+ typeset -a status_files
+ # A file is a candidate for `hg commit` if it is:
+ # - modified (m), or
+ # - added (a), or
+ # - removed (r)
+ _hg_status mar
+ _wanted files expl 'committable files' _multi_parts / status_files
+}
+
_hg_resolve() {
local rstate rpath
@@ -476,7 +486,7 @@ _hg_cmd_commit() {
'(--logfile -l)'{-l+,--logfile}'[read commit message from specified file]:log file:_files' \
'(--date -d)'{-d+,--date}'[record datecode as commit date]:date code:' \
'(--user -u)'{-u+,--user}'[record user as commiter]:user:' \
- '*:file:_hg_files'
+ '*:file:_hg_committable'
}
_hg_cmd_copy() {