mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-23 04:51:12 +02:00
43348: _hg: check for both -r and --rev
This commit is contained in:
parent
06f3bc09c0
commit
fcb4f79567
2 changed files with 5 additions and 2 deletions
|
@ -1,5 +1,8 @@
|
|||
2018-08-29 Oliver Kiddle <okiddle@yahoo.co.uk>
|
||||
|
||||
* 43348: Anton Shestakov: Completion/Unix/Command/_hg:
|
||||
check for both -r and --rev
|
||||
|
||||
* 43347: Anton Shestakov: Completion/Unix/Command/_hg:
|
||||
use revsets for suggestions for hg merge
|
||||
|
||||
|
|
|
@ -567,7 +567,7 @@ _hg_cmd_diff() {
|
|||
|
||||
if [[ $state == 'diff_files' ]]
|
||||
then
|
||||
if [[ -n $opt_args[-r] ]]
|
||||
if [[ -n ${opt_args[(I)-r|--rev]} ]]
|
||||
then
|
||||
_hg_files && ret=0
|
||||
else
|
||||
|
@ -795,7 +795,7 @@ _hg_cmd_revert() {
|
|||
|
||||
if [[ $state == 'diff_files' ]]
|
||||
then
|
||||
if [[ -n $opt_args[-r] ]]
|
||||
if [[ -n ${opt_args[(I)-r|--rev]} ]]
|
||||
then
|
||||
_hg_files && ret=0
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue