summaryrefslogtreecommitdiffstats
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorAnton Shestakov <av6@dwimlabs.net>2018-08-07 14:12:01 +0800
committerPeter Stephenson <p.stephenson@samsung.com>2018-08-07 09:19:24 +0100
commitbf8b61182043ec5457bfcc97f4969949678e0385 (patch)
tree4c799f4e39d898b0fc559745429543a433d96aa4 /Completion/Unix/Command
parent43252: fix various hg options for completion (diff)
downloadzsh-bf8b61182043ec5457bfcc97f4969949678e0385.tar
zsh-bf8b61182043ec5457bfcc97f4969949678e0385.tar.gz
zsh-bf8b61182043ec5457bfcc97f4969949678e0385.tar.bz2
zsh-bf8b61182043ec5457bfcc97f4969949678e0385.tar.lz
zsh-bf8b61182043ec5457bfcc97f4969949678e0385.tar.xz
zsh-bf8b61182043ec5457bfcc97f4969949678e0385.tar.zst
zsh-bf8b61182043ec5457bfcc97f4969949678e0385.zip
43254: remove hg -w completion, add hg -S
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_hg138
1 files changed, 69 insertions, 69 deletions
diff --git a/Completion/Unix/Command/_hg b/Completion/Unix/Command/_hg
index 18e3d77e5..2b2d3c4ec 100644
--- a/Completion/Unix/Command/_hg
+++ b/Completion/Unix/Command/_hg
@@ -82,7 +82,7 @@ _hg() {
if [[ -z "$cmd" ]]
then
- _arguments -s -w : $_hg_global_opts \
+ _arguments -s -S : $_hg_global_opts \
':mercurial command:_hg_commands'
return
fi
@@ -119,7 +119,7 @@ _hg() {
_hg_cmd_${cmd}
else
# complete unknown commands normally
- _arguments -s -w : $_hg_global_opts \
+ _arguments -s -S : $_hg_global_opts \
'*:files:_hg_files'
fi
}
@@ -411,18 +411,18 @@ _hg_cmd() {
}
_hg_cmd_add() {
- _arguments -s : $_hg_global_opts $_hg_pat_opts $_hg_dryrun_opts \
+ _arguments -s -S : $_hg_global_opts $_hg_pat_opts $_hg_dryrun_opts \
'*:unknown files:_hg_unknown'
}
_hg_cmd_addremove() {
- _arguments -s : $_hg_global_opts $_hg_pat_opts $_hg_dryrun_opts \
+ _arguments -s -S : $_hg_global_opts $_hg_pat_opts $_hg_dryrun_opts \
'(--similarity -s)'{-s+,--similarity=}'[guess renamed files by similarity (0<=s<=100)]:similarity' \
'*:unknown or missing files:_hg_addremove'
}
_hg_cmd_annotate() {
- _arguments -s : $_hg_global_opts $_hg_pat_opts \
+ _arguments -s -S : $_hg_global_opts $_hg_pat_opts \
'(--rev -r)'{-r+,--rev=}'[annotate the specified revision]:revision:_hg_tags' \
"--no-follow[don't follow copies and renames]" \
'(--text -a)'{-a,--text}'[treat all files as text]' \
@@ -436,7 +436,7 @@ _hg_cmd_annotate() {
}
_hg_cmd_archive() {
- _arguments -s : $_hg_global_opts $_hg_pat_opts \
+ _arguments -s -S : $_hg_global_opts $_hg_pat_opts \
'--no-decode[do not pass files through decoders]' \
'(--prefix -p)'{-p+,--prefix=}'[directory prefix for files in archive]:prefix' \
'(--rev -r)'{-r+,--rev=}'[revision to distribute]:revision:_hg_tags' \
@@ -445,7 +445,7 @@ _hg_cmd_archive() {
}
_hg_cmd_backout() {
- _arguments -s : $_hg_global_opts $_hg_pat_opts \
+ _arguments -s -S : $_hg_global_opts $_hg_pat_opts \
'--merge[merge with old dirstate parent after backout]' \
'(--date -d)'{-d+,--date=}'[record the specified date as commit date]:date' \
'--parent[parent to choose when backing out merge]' \
@@ -456,7 +456,7 @@ _hg_cmd_backout() {
}
_hg_cmd_bisect() {
- _arguments -s : $_hg_global_opts \
+ _arguments -s -S : $_hg_global_opts \
'(-)'{-r,--reset}'[reset bisect state]' \
'(--extend -e)'{-e,--extend}'[extend the bisect range]' \