mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-23 16:40:24 +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
|
@ -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…
Add table
Add a link
Reference in a new issue