Just to add some missing automate subcommands, and update "monotone
cat".
# 
# old_revision [c5cf48b2c38a310aabbad7466005e3564c856763]
# 
# patch "contrib/monotone.zsh_completion"
#  from [872e2d668a2b4c5775134fd1b2a7101d29c1cba5]
#    to [baa83a44030890e7e17e8029bef1e582f8fd760c]
# 
============================================================
--- contrib/monotone.zsh_completion	872e2d668a2b4c5775134fd1b2a7101d29c1cba5
+++ contrib/monotone.zsh_completion	baa83a44030890e7e17e8029bef1e582f8fd760c
@@ -85,24 +85,14 @@
 
 (( $+functions[_monotone_automate] )) ||
 _monotone_automate() {
-	compadd -- interface_version heads ancestors parents descendents children graph erase_ancestors toposort ancestry_difference leaves inventory
+	compadd -- interface_version heads ancestors attributes parents descendents children graph erase_ancestors toposort ancestry_difference leaves inventory stdio certs select get_manifest get_revision keys
 }
 
 (( $+functions[_monotone_cat] )) ||
 _monotone_cat() {
-	if (( CURRENT == 2 )); then	
-		compadd -- file manifest revision
-	else
-	  local mtype="$words[2]"
-		if [[ "$mtype" == "revision" ]]; then
-			_monotone_revisions
-		else
-			local id="$words[3]"
-			if (( $#id )); then
-  			compadd -- $(monotone complete $mtype $id 2> /dev/null)
-			fi
-	  fi
-	fi
+        _arguments -s \
+                '(-)--revision=:revision:_monotone_revisions' \
+                '*:file:_monotone_existing_entries'
 }
 
 (( $+functions[_monotone_cert] )) ||
_______________________________________________
Monotone-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/monotone-devel

Reply via email to