Show More
@@ -117,6 +117,11 b' typeset -A _hg_cmd_globals' | |||
|
117 | 117 | _describe -t commands 'mercurial command' _hg_cmd_list |
|
118 | 118 | } |
|
119 | 119 | |
|
120 | _hg_revrange() { | |
|
121 | compset -P 1 '*:' | |
|
122 | _hg_tags "$@" | |
|
123 | } | |
|
124 | ||
|
120 | 125 | _hg_tags() { |
|
121 | 126 | typeset -a tags |
|
122 | 127 | local tag rev |
@@ -283,7 +288,7 b' typeset -A _hg_cmd_globals' | |||
|
283 | 288 | |
|
284 | 289 | _hg_cmd_diff() { |
|
285 | 290 | _arguments -s -w : $_hg_global_opts $_hg_pat_opts $_hg_diff_opts \ |
|
286 |
'*'{-r,--rev}'+[revision]:revision:_hg_ |
|
|
291 | '*'{-r,--rev}'+[revision]:revision:_hg_revrange' \ | |
|
287 | 292 | '(--show-function -p)'{-p,--show-function}'[show which function each change is in]' \ |
|
288 | 293 | '(--ignore-all-space -w)'{-w,--ignore-all-space}'[ignore white space when comparing lines]' \ |
|
289 | 294 | '(--ignore-space-change -b)'{-b,--ignore-space-change}'[ignore changes in the amount of white space]' \ |
@@ -306,7 +311,7 b' typeset -A _hg_cmd_globals' | |||
|
306 | 311 | '(--ignore-case -i)'{-i,--ignore-case}'[ignore case when matching]' \ |
|
307 | 312 | '(--files-with-matches -l)'{-l,--files-with-matches}'[print only filenames and revs that match]' \ |
|
308 | 313 | '(--line-number -n)'{-n,--line-number}'[print matching line numbers]' \ |
|
309 |
'*'{-r+,--rev}'[search in given revision range]:revision:_hg_ |
|
|
314 | '*'{-r+,--rev}'[search in given revision range]:revision:_hg_revrange' \ | |
|
310 | 315 | '(--user -u)'{-u,--user}'[print user who committed change]' \ |
|
311 | 316 | '*:search pattern:_files -W $(_hg_cmd root)' |
|
312 | 317 | } |
@@ -360,7 +365,7 b' typeset -A _hg_cmd_globals' | |||
|
360 | 365 | '(--copies -C)'{-C,--copies}'[show copied files]' \ |
|
361 | 366 | '(--keyword -k)'{-k+,--keyword}'[search for a keyword]:' \ |
|
362 | 367 | '(--limit -l)'{-l+,--limit}'[limit number of changes displayed]:' \ |
|
363 |
'*'{-r,--rev}'[show the specified revision or range]:revision:_hg_ |
|
|
368 | '*'{-r,--rev}'[show the specified revision or range]:revision:_hg_revrange' \ | |
|
364 | 369 | '(--no-merges -M)'{-M,--no-merges}'[do not show merges]' \ |
|
365 | 370 | '(--only-merges -m)'{-m,--only-merges}'[show only merges]' \ |
|
366 | 371 | '(--patch -p)'{-p,--patch}'[show patch]' \ |
@@ -540,7 +545,7 b' typeset -A _hg_cmd_globals' | |||
|
540 | 545 | _hg_cmd_qdelete() { |
|
541 | 546 | _arguments -s -w : $_hg_global_opts \ |
|
542 | 547 | '(--keep -k)'{-k,--keep}'[keep patch file]' \ |
|
543 |
'*'{-r+,--rev}'[stop managing a revision]:applied patch:_hg_ |
|
|
548 | '*'{-r+,--rev}'[stop managing a revision]:applied patch:_hg_revrange' \ | |
|
544 | 549 | '*:unapplied patch:_hg_qunapplied' |
|
545 | 550 | } |
|
546 | 551 | |
@@ -573,7 +578,7 b' typeset -A _hg_cmd_globals' | |||
|
573 | 578 | '(--existing -e)'{-e,--existing}'[import file in patch dir]' \ |
|
574 | 579 | '(--name -n 2)'{-n+,--name}'[patch file name]:name:' \ |
|
575 | 580 | '(--force -f)'{-f,--force}'[overwrite existing files]' \ |
|
576 |
'*'{-r+,--rev}'[place existing revisions under mq control]:revision:_hg_ |
|
|
581 | '*'{-r+,--rev}'[place existing revisions under mq control]:revision:_hg_revrange' \ | |
|
577 | 582 | '*:patch:_files' |
|
578 | 583 | } |
|
579 | 584 |
General Comments 0
You need to be logged in to leave comments.
Login now