mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 10:01:11 +02:00
43250: add hg forget, phase, summary completion
This commit is contained in:
parent
ea33441f45
commit
ea4cc2e985
2 changed files with 23 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
|||
2018-08-07 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* Anton Shestakov: 43250: Completion/Unix/Command/_hg: Add hg
|
||||
forget, phase, summary completions.
|
||||
|
||||
* Anton Shestakov: 43251: Completion/Unix/Command/_hg: fix
|
||||
return value of some hg completion functions.
|
||||
|
||||
|
|
|
@ -554,6 +554,11 @@ _hg_cmd_export() {
|
|||
'*:revision:_hg_tags'
|
||||
}
|
||||
|
||||
_hg_cmd_forget() {
|
||||
_arguments -s : $_hg_global_opts $_hg_pat_opts \
|
||||
'*:file:_hg_files'
|
||||
}
|
||||
|
||||
_hg_cmd_grep() {
|
||||
_arguments -s : $_hg_global_opts $_hg_pat_opts \
|
||||
'(--print0 -0)'{-0,--print0}'[end filenames with NUL]' \
|
||||
|
@ -668,6 +673,16 @@ _hg_cmd_paths() {
|
|||
':path:_hg_paths'
|
||||
}
|
||||
|
||||
_hg_cmd_phase() {
|
||||
_arguments -s : $_hg_global_opts \
|
||||
'(--public -p --draft -d --secret -s)'{-p,--public}'[set changeset phase to public]' \
|
||||
'(--public -p --draft -d --secret -s)'{-d,--draft}'[set changeset phase to draft]' \
|
||||
'(--public -p --draft -d --secret -s)'{-s,--secret}'[set changeset phase to secret]' \
|
||||
'(--force -f)'{-f,--force}'[allow to move boundary backward]' \
|
||||
'*'{-r+,--rev=}'[target revision]:revision:_hg_tags' \
|
||||
'*:revision:_hg_tags'
|
||||
}
|
||||
|
||||
_hg_cmd_pull() {
|
||||
_arguments -s : $_hg_global_opts $_hg_remote_opts \
|
||||
'(--force -f)'{-f,--force}'[run even when the remote repository is unrelated]' \
|
||||
|
@ -782,6 +797,11 @@ _hg_cmd_status() {
|
|||
'*:files:_files'
|
||||
}
|
||||
|
||||
_hg_cmd_summary() {
|
||||
_arguments -s : $_hg_global_opts \
|
||||
'--remote[check for push and pull]'
|
||||
}
|
||||
|
||||
_hg_cmd_tag() {
|
||||
_arguments -s : $_hg_global_opts \
|
||||
'(--local -l)'{-l,--local}'[make the tag local]' \
|
||||
|
|
Loading…
Reference in a new issue