1
0
Fork 0
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:
Anton Shestakov 2018-08-29 08:17:31 +08:00 committed by Oliver Kiddle
parent 06f3bc09c0
commit fcb4f79567
2 changed files with 5 additions and 2 deletions
ChangeLog
Completion/Unix/Command

View file

@ -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

View file

@ -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