contrib/bash_completion
changeset 3993 04d919cdf263
parent 3992 d86ab4ba5ae6
child 5081 ea7b982b6c08
--- 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
+}
+