expanded bash_completion for transplant extension
authorThomas Arendsen Hein <thomas@intevation.de>
Tue, 26 Dec 2006 20:08:09 +0100
changeset 3993 04d919cdf263
parent 3992 d86ab4ba5ae6
child 3994 1cc60eebc71f
expanded bash_completion for transplant extension
contrib/bash_completion
--- a/contrib/bash_completion	Tue Dec 26 19:56:42 2006 +0100
+++ b/contrib/bash_completion	Tue Dec 26 20:08:09 2006 +0100
@@ -478,3 +478,25 @@
 {
     _hg_tags
 }
+
+
+# transplant
+_hg_cmd_transplant()
+{
+    case "$prev" in
+	-s|--source)
+	    _hg_paths
+	    _hg_repos
+	    return
+	    ;;
+	--filter)
+	    # standard filename completion
+	    return
+	    ;;
+    esac
+
+    # all other transplant options values and command parameters are revisions
+    _hg_tags
+    return
+}
+