D4427: zsh_completion: handle --rev as well as -r for diff and revert
av6 (Anton Shestakov)
phabricator at mercurial-scm.org
Sat Sep 1 20:59:27 UTC 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG09f23b4f1be3: zsh_completion: handle --rev as well as -r for diff and revert (authored by av6, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D4427?vs=10683&id=10707
REVISION DETAIL
https://phab.mercurial-scm.org/D4427
AFFECTED FILES
contrib/zsh_completion
CHANGE DETAILS
diff --git a/contrib/zsh_completion b/contrib/zsh_completion
--- a/contrib/zsh_completion
+++ b/contrib/zsh_completion
@@ -624,7 +624,7 @@
if [[ $state == 'diff_files' ]]
then
- if [[ -n $opt_args[-r] ]]
+ if [[ -n ${opt_args[(I)-r|--rev]} ]]
then
_hg_files && ret=0
else
@@ -870,7 +870,7 @@
if [[ $state == 'revert_files' ]]
then
- if [[ -n $opt_args[-r] ]]
+ if [[ -n ${opt_args[(I)-r|--rev]} ]]
then
_hg_files && ret=0
else
To: av6, #hg-reviewers, spectral, pulkit
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list