contrib/bash_completion
changeset 3481 13a9a2136dd7
parent 3480 03932425cfd8
child 3482 e762c0e95eac
--- a/contrib/bash_completion	Sun Oct 22 01:01:03 2006 -0300
+++ b/contrib/bash_completion	Sun Oct 22 01:01:42 2006 -0300
@@ -193,7 +193,13 @@
 	help)
 	    _hg_commands
 	;;
-	export|manifest|update)
+	export)
+	    if _hg_ext_mq_patchlist qapplied && [ "${COMPREPLY[*]}" ]; then
+		return 0
+	    fi
+	    _hg_tags
+	;;
+	manifest|update)
 	    _hg_tags
 	;;
 	pull|push|outgoing|incoming)
@@ -318,11 +324,6 @@
     COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$files' -- "$cur"))
 }
 
-_hg_cmd_export()
-{
-    _hg_ext_mq_patchlist qapplied
-}
-
 
 # hbisect
 _hg_cmd_bisect()