changeset 3601:cedf056bb723

zsh: support remote cloning
author Brendan Cully <brendan@kublai.com>
date Tue, 31 Oct 2006 15:48:02 -0800
parents 932dadd2e614
children ec221317e018
files contrib/zsh_completion
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/zsh_completion	Tue Oct 31 15:44:16 2006 -0800
+++ b/contrib/zsh_completion	Tue Oct 31 15:48:02 2006 -0800
@@ -239,6 +239,11 @@
     'urls:URL:_hg_urls'
 }
 
+_hg_clone_dest() {
+  _alternative 'directories:directory:_files -/' \
+    'urls:URL:_hg_urls'
+}
+
 # Common options
 _hg_global_opts=(
     '(--repository -R)'{-R+,--repository}'[repository root directory]:repository:_files -/'
@@ -337,7 +342,7 @@
   '(--rev -r)'{-r+,--rev}'[a changeset you would like to have after cloning]:' \
   '--uncompressed[use uncompressed transfer (fast over LAN)]' \
   ':source repository:_hg_remote' \
-  ':destination:_files -/'  
+  ':destination:_hg_clone_dest'
 }
 
 _hg_cmd_commit() {