Show More
@@ -117,6 +117,11 b' typeset -A _hg_cmd_globals' | |||||
117 | _describe -t commands 'mercurial command' _hg_cmd_list |
|
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 | _hg_tags() { |
|
125 | _hg_tags() { | |
121 | typeset -a tags |
|
126 | typeset -a tags | |
122 | local tag rev |
|
127 | local tag rev | |
@@ -283,7 +288,7 b' typeset -A _hg_cmd_globals' | |||||
283 |
|
288 | |||
284 | _hg_cmd_diff() { |
|
289 | _hg_cmd_diff() { | |
285 | _arguments -s -w : $_hg_global_opts $_hg_pat_opts $_hg_diff_opts \ |
|
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 | '(--show-function -p)'{-p,--show-function}'[show which function each change is in]' \ |
|
292 | '(--show-function -p)'{-p,--show-function}'[show which function each change is in]' \ | |
288 | '(--ignore-all-space -w)'{-w,--ignore-all-space}'[ignore white space when comparing lines]' \ |
|
293 | '(--ignore-all-space -w)'{-w,--ignore-all-space}'[ignore white space when comparing lines]' \ | |
289 | '(--ignore-space-change -b)'{-b,--ignore-space-change}'[ignore changes in the amount of white space]' \ |
|
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 | '(--ignore-case -i)'{-i,--ignore-case}'[ignore case when matching]' \ |
|
311 | '(--ignore-case -i)'{-i,--ignore-case}'[ignore case when matching]' \ | |
307 | '(--files-with-matches -l)'{-l,--files-with-matches}'[print only filenames and revs that match]' \ |
|
312 | '(--files-with-matches -l)'{-l,--files-with-matches}'[print only filenames and revs that match]' \ | |
308 | '(--line-number -n)'{-n,--line-number}'[print matching line numbers]' \ |
|
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 | '(--user -u)'{-u,--user}'[print user who committed change]' \ |
|
315 | '(--user -u)'{-u,--user}'[print user who committed change]' \ | |
311 | '*:search pattern:_files -W $(_hg_cmd root)' |
|
316 | '*:search pattern:_files -W $(_hg_cmd root)' | |
312 | } |
|
317 | } | |
@@ -360,7 +365,7 b' typeset -A _hg_cmd_globals' | |||||
360 | '(--copies -C)'{-C,--copies}'[show copied files]' \ |
|
365 | '(--copies -C)'{-C,--copies}'[show copied files]' \ | |
361 | '(--keyword -k)'{-k+,--keyword}'[search for a keyword]:' \ |
|
366 | '(--keyword -k)'{-k+,--keyword}'[search for a keyword]:' \ | |
362 | '(--limit -l)'{-l+,--limit}'[limit number of changes displayed]:' \ |
|
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 | '(--no-merges -M)'{-M,--no-merges}'[do not show merges]' \ |
|
369 | '(--no-merges -M)'{-M,--no-merges}'[do not show merges]' \ | |
365 | '(--only-merges -m)'{-m,--only-merges}'[show only merges]' \ |
|
370 | '(--only-merges -m)'{-m,--only-merges}'[show only merges]' \ | |
366 | '(--patch -p)'{-p,--patch}'[show patch]' \ |
|
371 | '(--patch -p)'{-p,--patch}'[show patch]' \ | |
@@ -540,7 +545,7 b' typeset -A _hg_cmd_globals' | |||||
540 | _hg_cmd_qdelete() { |
|
545 | _hg_cmd_qdelete() { | |
541 | _arguments -s -w : $_hg_global_opts \ |
|
546 | _arguments -s -w : $_hg_global_opts \ | |
542 | '(--keep -k)'{-k,--keep}'[keep patch file]' \ |
|
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 | '*:unapplied patch:_hg_qunapplied' |
|
549 | '*:unapplied patch:_hg_qunapplied' | |
545 | } |
|
550 | } | |
546 |
|
551 | |||
@@ -573,7 +578,7 b' typeset -A _hg_cmd_globals' | |||||
573 | '(--existing -e)'{-e,--existing}'[import file in patch dir]' \ |
|
578 | '(--existing -e)'{-e,--existing}'[import file in patch dir]' \ | |
574 | '(--name -n 2)'{-n+,--name}'[patch file name]:name:' \ |
|
579 | '(--name -n 2)'{-n+,--name}'[patch file name]:name:' \ | |
575 | '(--force -f)'{-f,--force}'[overwrite existing files]' \ |
|
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 | '*:patch:_files' |
|
582 | '*:patch:_files' | |
578 | } |
|
583 | } | |
579 |
|
584 |
General Comments 0
You need to be logged in to leave comments.
Login now