summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/User/_cvs13
2 files changed, 13 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index b10e1a2cc..410817ef3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-10-04  Tanaka Akira  <akr@zsh.org>
+
+	* 12886: Completion/User/_cvs: make _cvs_vendor_branches to handle
+	remote-access style.
+
 2000-10-04  Sven Wischnowsky  <wischnow@zsh.org>
 
 	* 12885: Src/Zle/zle_tricky.c: don't stop parsing too early when
diff --git a/Completion/User/_cvs b/Completion/User/_cvs
index 3f00bc1c3..57378ae47 100644
--- a/Completion/User/_cvs
+++ b/Completion/User/_cvs
@@ -744,11 +744,14 @@ _cvs_remote_directories () {
 (( $+functions[_cvs_vendor_branches] )) ||
 _cvs_vendor_branches () {
   local expl vendor_branch
-  if [[ -n $opt_args[-b] ]]; then
-    _cvs_extract_vendor_branch -b "$opt_args[-b]" "$cvsroot" "$line[1]" \
-      vendor_branch
-  else
-    _cvs_extract_vendor_branch "$cvsroot" "$line[1]" vendor_branch
+  vendor_branch=()
+  if zstyle -T ":completion:${curcontext}:" remote-access; then
+    if [[ -n $opt_args[-b] ]]; then
+      _cvs_extract_vendor_branch -b "$opt_args[-b]" "$cvsroot" "$line[1]" \
+	vendor_branch
+    else
+      _cvs_extract_vendor_branch "$cvsroot" "$line[1]" vendor_branch
+    fi
   fi
   if (( $#vendor_branch )); then
     _wanted values expl 'vendor branch' compadd -a vendor_branch