Show More
@@ -163,21 +163,10 b' typeset -A _hg_cmd_globals' | |||
|
163 | 163 | } |
|
164 | 164 | |
|
165 | 165 | _hg_labels() { |
|
166 | _hg_tags "$@" | |
|
167 | _hg_bookmarks "$@" | |
|
168 | _hg_branches "$@" | |
|
166 | labels=("${(f)$(_hg_cmd debuglabelcomplete)}") | |
|
167 | (( $#labels )) && _describe -t labels 'labels' labels | |
|
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 | 170 | _hg_bookmarks() { |
|
182 | 171 | typeset -a bookmark bookmarks |
|
183 | 172 | |
@@ -940,7 +929,7 b' typeset -A _hg_cmd_globals' | |||
|
940 | 929 | _hg_cmd_view() { |
|
941 | 930 | _arguments -s -w : $_hg_global_opts \ |
|
942 | 931 | '(--limit -l)'{-l+,--limit}'[limit number of changes displayed]:' \ |
|
943 |
':revision range:_hg_ |
|
|
932 | ':revision range:_hg_labels' | |
|
944 | 933 | } |
|
945 | 934 | |
|
946 | 935 | # MQ |
General Comments 0
You need to be logged in to leave comments.
Login now