1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-17 00:31:09 +02:00

36626: _hg: completion for 'hg bookmarks'

This commit is contained in:
Christoph Mathys 2015-09-25 23:19:44 +00:00 committed by Daniel Shahaf
parent 649d06a8cd
commit 61fa5f66f0
2 changed files with 15 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2015-09-25 Christoph Mathys <eraserix@gmail.com>
* 36626: Completion/Unix/Command/_hg: _hg: completion for
'hg bookmarks'
2015-09-25 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 36630: Doc/Zsh/contrib.yo, Doc/Zsh/manual.yo,

View file

@ -460,6 +460,16 @@ _hg_cmd_bisect() {
'(--command -c --noupdate -U)'{-U,--noupdate}'[do not update to target]'
}
_hg_cmd_bookmarks() {
_arguments -s : $_hg_global_opts \
'(--force -f)'{-f,--force}'[force]' \
'(--rev -r)'{-r+,--rev=}'[set bookmark at revision]:revision:_hg_tags' \
'(--delete -d)'{-d,--delete}'[delete a given bookmark]' \
'(--rename -m)'{-m+,--rename}'[rename given bookmark]:bookmark:_hg_bookmarks_internal' \
'(--inactive -i)'{-i,--inactive}'[mark a bookmark inactive]' \
':bookmark:_hg_bookmarks_internal'
}
_hg_cmd_branch() {
_arguments -s -w : $_hg_global_opts \
'(--force -f)'{-f,--force}'[set branch name even if it shadows an existing branch]' \