Show More
@@ -13,6 +13,9 b'' | |||
|
13 | 13 | # option) any later version. |
|
14 | 14 | # |
|
15 | 15 | |
|
16 | emulate -LR zsh | |
|
17 | setopt extendedglob | |
|
18 | ||
|
16 | 19 | local curcontext="$curcontext" state line |
|
17 | 20 | typeset -A _hg_cmd_globals |
|
18 | 21 | |
@@ -153,9 +156,9 b' typeset -A _hg_cmd_globals' | |||
|
153 | 156 | typeset -a tags |
|
154 | 157 | local tag rev |
|
155 | 158 | |
|
156 |
_hg_cmd tags 2> /dev/null | while read tag |
|
|
159 | _hg_cmd tags 2> /dev/null | while read tag | |
|
157 | 160 | do |
|
158 | tags+=($tag) | |
|
161 | tags+=(${tag/ # [0-9]#:*}) | |
|
159 | 162 | done |
|
160 | 163 | (( $#tags )) && _describe -t tags 'tags' tags |
|
161 | 164 | } |
@@ -674,13 +677,13 b' typeset -A _hg_cmd_globals' | |||
|
674 | 677 | # MQ |
|
675 | 678 | _hg_qseries() { |
|
676 | 679 | typeset -a patches |
|
677 | patches=($(_hg_cmd qseries 2>/dev/null)) | |
|
680 | patches=(${(f)"$(_hg_cmd qseries 2>/dev/null)"}) | |
|
678 | 681 | (( $#patches )) && _describe -t hg-patches 'patches' patches |
|
679 | 682 | } |
|
680 | 683 | |
|
681 | 684 | _hg_qapplied() { |
|
682 | 685 | typeset -a patches |
|
683 | patches=($(_hg_cmd qapplied 2>/dev/null)) | |
|
686 | patches=(${(f)"$(_hg_cmd qapplied 2>/dev/null)"}) | |
|
684 | 687 | if (( $#patches )) |
|
685 | 688 | then |
|
686 | 689 | patches+=(qbase qtip) |
@@ -690,7 +693,7 b' typeset -A _hg_cmd_globals' | |||
|
690 | 693 | |
|
691 | 694 | _hg_qunapplied() { |
|
692 | 695 | typeset -a patches |
|
693 | patches=($(_hg_cmd qunapplied 2>/dev/null)) | |
|
696 | patches=(${(f)"$(_hg_cmd qunapplied 2>/dev/null)"}) | |
|
694 | 697 | (( $#patches )) && _describe -t hg-unapplied-patches 'unapplied patches' patches |
|
695 | 698 | } |
|
696 | 699 | |
@@ -730,6 +733,12 b' typeset -A _hg_cmd_globals' | |||
|
730 | 733 | '*:unapplied patch:_hg_qunapplied' |
|
731 | 734 | } |
|
732 | 735 | |
|
736 | _hg_cmd_qgoto() { | |
|
737 | _arguments -s -w : $_hg_global_opts \ | |
|
738 | '(--force -f)'{-f,--force}'[overwrite any local changes]' \ | |
|
739 | ':patch:_hg_qseries' | |
|
740 | } | |
|
741 | ||
|
733 | 742 | _hg_cmd_qguard() { |
|
734 | 743 | _arguments -s -w : $_hg_global_opts \ |
|
735 | 744 | '(--list -l)'{-l,--list}'[list all patches and guards]' \ |
General Comments 0
You need to be logged in to leave comments.
Login now