Show More
@@ -163,21 +163,10 b' typeset -A _hg_cmd_globals' | |||||
163 | } |
|
163 | } | |
164 |
|
164 | |||
165 | _hg_labels() { |
|
165 | _hg_labels() { | |
166 | _hg_tags "$@" |
|
166 | labels=("${(f)$(_hg_cmd debuglabelcomplete)}") | |
167 | _hg_bookmarks "$@" |
|
167 | (( $#labels )) && _describe -t labels 'labels' labels | |
168 | _hg_branches "$@" |
|
|||
169 | } |
|
168 | } | |
170 |
|
169 | |||
171 | _hg_tags() { |
|
|||
172 | typeset -a tags |
|
|||
173 | local tag rev |
|
|||
174 |
|
||||
175 | _hg_cmd tags | while read tag |
|
|||
176 | do |
|
|||
177 | tags+=(${tag/ #[0-9]#:*}) |
|
|||
178 | done |
|
|||
179 | (( $#tags )) && _describe -t tags 'tags' tags |
|
|||
180 | } |
|
|||
181 | _hg_bookmarks() { |
|
170 | _hg_bookmarks() { | |
182 | typeset -a bookmark bookmarks |
|
171 | typeset -a bookmark bookmarks | |
183 |
|
172 | |||
@@ -940,7 +929,7 b' typeset -A _hg_cmd_globals' | |||||
940 | _hg_cmd_view() { |
|
929 | _hg_cmd_view() { | |
941 | _arguments -s -w : $_hg_global_opts \ |
|
930 | _arguments -s -w : $_hg_global_opts \ | |
942 | '(--limit -l)'{-l+,--limit}'[limit number of changes displayed]:' \ |
|
931 | '(--limit -l)'{-l+,--limit}'[limit number of changes displayed]:' \ | |
943 |
':revision range:_hg_ |
|
932 | ':revision range:_hg_labels' | |
944 | } |
|
933 | } | |
945 |
|
934 | |||
946 | # MQ |
|
935 | # MQ |
General Comments 0
You need to be logged in to leave comments.
Login now