diff options
| author | Stefan Monnier | 2002-10-08 20:25:21 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2002-10-08 20:25:21 +0000 |
| commit | 23b0a67405eb13625f4ebb51c8655340640b88e1 (patch) | |
| tree | 1f566c3bdc74c4a89fb76d7a2992751b8524ea52 | |
| parent | 8e859566007d91483aa8d02376cf16028d691820 (diff) | |
| download | emacs-23b0a67405eb13625f4ebb51c8655340640b88e1.tar.gz emacs-23b0a67405eb13625f4ebb51c8655340640b88e1.zip | |
(vc-cvs-find-version): Fix vc-checkout-switches use.
| -rw-r--r-- | lisp/vc-cvs.el | 38 |
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 @@ | |||
| 5 | ;; Author: FSF (see vc.el for full credits) | 5 | ;; Author: FSF (see vc.el for full credits) |
| 6 | ;; Maintainer: Andre Spiegel <spiegel@gnu.org> | 6 | ;; Maintainer: Andre Spiegel <spiegel@gnu.org> |
| 7 | 7 | ||
| 8 | ;; $Id: vc-cvs.el,v 1.43 2002/10/04 18:38:53 monnier Exp $ | 8 | ;; $Id: vc-cvs.el,v 1.44 2002/10/08 15:38:28 monnier Exp $ |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | 11 | ||
| @@ -376,7 +376,9 @@ This is only possible if CVS is responsible for FILE's directory." | |||
| 376 | (and rev (not (string= rev "")) | 376 | (and rev (not (string= rev "")) |
| 377 | (concat "-r" rev)) | 377 | (concat "-r" rev)) |
| 378 | "-p" | 378 | "-p" |
| 379 | vc-checkout-switches)) | 379 | (if (stringp vc-checkout-switches) |
| 380 | (list vc-checkout-switches) | ||
| 381 | vc-checkout-switches))) | ||
| 380 | 382 | ||
| 381 | (defun vc-cvs-checkout (file &optional editable rev workfile) | 383 | (defun vc-cvs-checkout (file &optional editable rev workfile) |
| 382 | "Retrieve a revision of FILE into a WORKFILE. | 384 | "Retrieve a revision of FILE into a WORKFILE. |
| @@ -436,22 +438,22 @@ REV is the revision to check out into WORKFILE." | |||
| 436 | (if (and (file-exists-p file) (not rev)) | 438 | (if (and (file-exists-p file) (not rev)) |
| 437 | ;; If no revision was specified, just make the file writable | 439 | ;; If no revision was specified, just make the file writable |
| 438 | ;; if necessary (using `cvs-edit' if requested). | 440 | ;; if necessary (using `cvs-edit' if requested). |
| 439 | (and editable (not (eq (vc-cvs-checkout-model file) 'implicit)) | 441 | (and editable (not (eq (vc-cvs-checkout-model file) 'implicit)) |
| 440 | (if vc-cvs-use-edit | 442 | (if vc-cvs-use-edit |
| 441 | (vc-cvs-command nil 0 file "edit") | 443 | (vc-cvs-command nil 0 file "edit") |
| 442 | (set-file-modes file (logior (file-modes file) 128)) | 444 | (set-file-modes file (logior (file-modes file) 128)) |
| 443 | (if file-buffer (toggle-read-only -1)))) | 445 | (if file-buffer (toggle-read-only -1)))) |
| 444 | ;; Check out a particular version (or recreate the file). | 446 | ;; Check out a particular version (or recreate the file). |
| 445 | (vc-file-setprop file 'vc-workfile-version nil) | 447 | (vc-file-setprop file 'vc-workfile-version nil) |
| 446 | (apply 'vc-cvs-command nil 0 file | 448 | (apply 'vc-cvs-command nil 0 file |
| 447 | (and editable | 449 | (and editable |
| 448 | (or (not (file-exists-p file)) | 450 | (or (not (file-exists-p file)) |
| 449 | (not (eq (vc-cvs-checkout-model file) | 451 | (not (eq (vc-cvs-checkout-model file) |
| 450 | 'implicit))) | 452 | 'implicit))) |
| 451 | "-w") | 453 | "-w") |
| 452 | "update" | 454 | "update" |
| 453 | ;; default for verbose checkout: clear the sticky tag so | 455 | ;; default for verbose checkout: clear the sticky tag so |
| 454 | ;; that the actual update will get the head of the trunk | 456 | ;; that the actual update will get the head of the trunk |
| 455 | (if (or (not rev) (string= rev "")) | 457 | (if (or (not rev) (string= rev "")) |
| 456 | "-A" | 458 | "-A" |
| 457 | (concat "-r" rev)) | 459 | (concat "-r" rev)) |