diff options
| author | André Spiegel | 2002-12-26 14:05:48 +0000 |
|---|---|---|
| committer | André Spiegel | 2002-12-26 14:05:48 +0000 |
| commit | 83220ab07af2ce70cadcd6467cfc92189c2b1009 (patch) | |
| tree | 407e62ef80c85dab24764dd05d7a33664964da08 | |
| parent | 4279775b92b2622ef107d270deb3019957d0fd29 (diff) | |
| download | emacs-83220ab07af2ce70cadcd6467cfc92189c2b1009.tar.gz emacs-83220ab07af2ce70cadcd6467cfc92189c2b1009.zip | |
(vc-cvs-checkout): Handle t argument for REV.
| -rw-r--r-- | lisp/vc-cvs.el | 45 |
1 files changed, 23 insertions, 22 deletions
diff --git a/lisp/vc-cvs.el b/lisp/vc-cvs.el index c6965955059..5da3e5a092a 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.48 2002/10/11 06:47:49 miles Exp $ | 8 | ;; $Id: vc-cvs.el,v 1.49 2002/10/17 15:43:48 lektu Exp $ |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | 11 | ||
| @@ -421,7 +421,8 @@ REV is the revision to check out into WORKFILE." | |||
| 421 | (current-buffer) 0 file | 421 | (current-buffer) 0 file |
| 422 | "-Q" ; suppress diagnostic output | 422 | "-Q" ; suppress diagnostic output |
| 423 | "update" | 423 | "update" |
| 424 | (and rev (not (string= rev "")) | 424 | (and (stringp rev) |
| 425 | (not (string= rev "")) | ||
| 425 | (concat "-r" rev)) | 426 | (concat "-r" rev)) |
| 426 | "-p" | 427 | "-p" |
| 427 | switches))) | 428 | switches))) |
| @@ -438,26 +439,26 @@ REV is the revision to check out into WORKFILE." | |||
| 438 | (if (and (file-exists-p file) (not rev)) | 439 | (if (and (file-exists-p file) (not rev)) |
| 439 | ;; If no revision was specified, just make the file writable | 440 | ;; If no revision was specified, just make the file writable |
| 440 | ;; if necessary (using `cvs-edit' if requested). | 441 | ;; if necessary (using `cvs-edit' if requested). |
| 441 | (and editable (not (eq (vc-cvs-checkout-model file) 'implicit)) | 442 | (and editable (not (eq (vc-cvs-checkout-model file) 'implicit)) |
| 442 | (if vc-cvs-use-edit | 443 | (if vc-cvs-use-edit |
| 443 | (vc-cvs-command nil 0 file "edit") | 444 | (vc-cvs-command nil 0 file "edit") |
| 444 | (set-file-modes file (logior (file-modes file) 128)) | 445 | (set-file-modes file (logior (file-modes file) 128)) |
| 445 | (if file-buffer (toggle-read-only -1)))) | 446 | (if file-buffer (toggle-read-only -1)))) |
| 446 | ;; Check out a particular version (or recreate the file). | 447 | ;; Check out a particular version (or recreate the file). |
| 447 | (vc-file-setprop file 'vc-workfile-version nil) | 448 | (vc-file-setprop file 'vc-workfile-version nil) |
| 448 | (apply 'vc-cvs-command nil 0 file | 449 | (apply 'vc-cvs-command nil 0 file |
| 449 | (and editable | 450 | (and editable |
| 450 | (or (not (file-exists-p file)) | 451 | (or (not (file-exists-p file)) |
| 451 | (not (eq (vc-cvs-checkout-model file) | 452 | (not (eq (vc-cvs-checkout-model file) |
| 452 | 'implicit))) | 453 | 'implicit))) |
| 453 | "-w") | 454 | "-w") |
| 454 | "update" | 455 | "update" |
| 455 | ;; default for verbose checkout: clear the sticky tag so | 456 | ;; default for verbose checkout: clear the sticky tag so |
| 456 | ;; that the actual update will get the head of the trunk | 457 | ;; that the actual update will get the head of the trunk |
| 457 | (if (or (not rev) (string= rev "")) | 458 | (if (or (not rev) (eq rev t) (string= rev "")) |
| 458 | "-A" | 459 | "-A" |
| 459 | (concat "-r" rev)) | 460 | (concat "-r" rev)) |
| 460 | switches)))) | 461 | switches)))) |
| 461 | (vc-mode-line file) | 462 | (vc-mode-line file) |
| 462 | (message "Checking out %s...done" filename))))) | 463 | (message "Checking out %s...done" filename))))) |
| 463 | 464 | ||