summaryrefslogtreecommitdiff
path: root/lisp/vc-cvs.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2002-10-08 20:25:21 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2002-10-08 20:25:21 +0000
commit23b0a67405eb13625f4ebb51c8655340640b88e1 (patch)
tree1f566c3bdc74c4a89fb76d7a2992751b8524ea52 /lisp/vc-cvs.el
parent8e859566007d91483aa8d02376cf16028d691820 (diff)
downloademacs-23b0a67405eb13625f4ebb51c8655340640b88e1.tar.gz
(vc-cvs-find-version): Fix vc-checkout-switches use.
Diffstat (limited to 'lisp/vc-cvs.el')
-rw-r--r--lisp/vc-cvs.el38
1 files changed, 20 insertions, 18 deletions
diff --git a/lisp/vc-cvs.el b/lisp/vc-cvs.el
index 759d1a43166..5ed447ee8b5 100644
--- a/lisp/vc-cvs.el
+++ b/lisp/vc-cvs.el
@@ -5,7 +5,7 @@
;; Author: FSF (see vc.el for full credits)
;; Maintainer: Andre Spiegel <spiegel@gnu.org>
-;; $Id: vc-cvs.el,v 1.43 2002/10/04 18:38:53 monnier Exp $
+;; $Id: vc-cvs.el,v 1.44 2002/10/08 15:38:28 monnier Exp $
;; This file is part of GNU Emacs.
@@ -376,7 +376,9 @@ This is only possible if CVS is responsible for FILE's directory."
(and rev (not (string= rev ""))
(concat "-r" rev))
"-p"
- vc-checkout-switches))
+ (if (stringp vc-checkout-switches)
+ (list vc-checkout-switches)
+ vc-checkout-switches)))
(defun vc-cvs-checkout (file &optional editable rev workfile)
"Retrieve a revision of FILE into a WORKFILE.
@@ -436,22 +438,22 @@ REV is the revision to check out into WORKFILE."
(if (and (file-exists-p file) (not rev))
;; If no revision was specified, just make the file writable
;; if necessary (using `cvs-edit' if requested).
- (and editable (not (eq (vc-cvs-checkout-model file) 'implicit))
- (if vc-cvs-use-edit
- (vc-cvs-command nil 0 file "edit")
- (set-file-modes file (logior (file-modes file) 128))
- (if file-buffer (toggle-read-only -1))))
- ;; Check out a particular version (or recreate the file).
- (vc-file-setprop file 'vc-workfile-version nil)
- (apply 'vc-cvs-command nil 0 file
- (and editable
- (or (not (file-exists-p file))
- (not (eq (vc-cvs-checkout-model file)
- 'implicit)))
- "-w")
- "update"
- ;; default for verbose checkout: clear the sticky tag so
- ;; that the actual update will get the head of the trunk
+ (and editable (not (eq (vc-cvs-checkout-model file) 'implicit))
+ (if vc-cvs-use-edit
+ (vc-cvs-command nil 0 file "edit")
+ (set-file-modes file (logior (file-modes file) 128))
+ (if file-buffer (toggle-read-only -1))))
+ ;; Check out a particular version (or recreate the file).
+ (vc-file-setprop file 'vc-workfile-version nil)
+ (apply 'vc-cvs-command nil 0 file
+ (and editable
+ (or (not (file-exists-p file))
+ (not (eq (vc-cvs-checkout-model file)
+ 'implicit)))
+ "-w")
+ "update"
+ ;; default for verbose checkout: clear the sticky tag so
+ ;; that the actual update will get the head of the trunk
(if (or (not rev) (string= rev ""))
"-A"
(concat "-r" rev))