[PATCH] bash_completion: add rebase rev completion

Kevin Bullock kbullock+mercurial at ringworld.org
Fri Aug 31 13:18:15 CDT 2012


# HG changeset patch
# User Kevin Bullock <kbullock at ringworld.org>
# Date 1346437036 18000
# Branch stable
# Node ID 48aa2810d37f1e86c31b48ae0494fbfe37e1c2da
# Parent  7228def3dcc114f2c9f8c7b7733170adcb3a5630
bash_completion: add rebase rev completion

diff --git a/contrib/bash_completion b/contrib/bash_completion
--- a/contrib/bash_completion
+++ b/contrib/bash_completion
@@ -386,6 +386,13 @@ complete -o bashdefault -o default -F _h
     fi
 }
 
+_hg_cmd_rebase() {
+   if [[ "$prev" = @(-s|--source|-d|--dest|-b|--base|-r|--rev) ]]; then
+       _hg_labels
+       return
+   fi
+}
+
 _hg_cmd_strip()
 {
     _hg_labels


More information about the Mercurial-devel mailing list