changeset 3488:40fabb2a64b8

zsh: add -r to parents
author Brendan Cully <brendan@kublai.com>
date Tue, 24 Oct 2006 11:10:04 -0700
parents 1b9494d2b070
children 0e80552e1275
files contrib/zsh_completion
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/zsh_completion
+++ b/contrib/zsh_completion
@@ -434,8 +434,11 @@ case $service in
         _arguments '*:revision:->tags'
     ;;
 
-    (parents)
-        _arguments '*:revision:->tags'
+    (par*)
+        _arguments \
+        '(--rev 1)-r[show parents of the specified rev]:revision:->tags' \
+        '(-r 1)--rev[show parents of the specified rev]:revision:->tags' \
+	'::revision:->tags'
     ;;
 
     (identify|recover|root|undo|view|verify|version|ct|tags)