diff options
| author | Stefan Monnier | 2003-05-08 20:08:12 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2003-05-08 20:08:12 +0000 |
| commit | cc47c6c183f200c8a7a086ad82f521dd193e5d69 (patch) | |
| tree | ccb172ad171f8612d9b859348d136ef37d3041d4 | |
| parent | f0aa2e2187404681439939754f68092dc64e4d7b (diff) | |
| download | emacs-cc47c6c183f200c8a7a086ad82f521dd193e5d69.tar.gz emacs-cc47c6c183f200c8a7a086ad82f521dd193e5d69.zip | |
(vc-cvs-dired-state-info): Typo.
| -rw-r--r-- | lisp/vc-cvs.el | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/lisp/vc-cvs.el b/lisp/vc-cvs.el index b9b9979cbc6..705db48bc30 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.56 2003/04/23 13:14:16 spiegel Exp $ | 8 | ;; $Id: vc-cvs.el,v 1.57 2003/05/08 18:23:53 monnier Exp $ |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | 11 | ||
| @@ -281,7 +281,7 @@ committed and support display of sticky tags." | |||
| 281 | "CVS-specific version of `vc-dired-state-info'." | 281 | "CVS-specific version of `vc-dired-state-info'." |
| 282 | (let ((cvs-state (vc-state file))) | 282 | (let ((cvs-state (vc-state file))) |
| 283 | (cond ((eq cvs-state 'edited) | 283 | (cond ((eq cvs-state 'edited) |
| 284 | (if (equal (vc-workfile-version) "0") | 284 | (if (equal (vc-workfile-version file) "0") |
| 285 | "(added)" "(modified)")) | 285 | "(added)" "(modified)")) |
| 286 | ((eq cvs-state 'needs-patch) "(patch)") | 286 | ((eq cvs-state 'needs-patch) "(patch)") |
| 287 | ((eq cvs-state 'needs-merge) "(merge)")))) | 287 | ((eq cvs-state 'needs-merge) "(merge)")))) |
| @@ -473,7 +473,30 @@ REV is the revision to check out into WORKFILE." | |||
| 473 | (unless contents-done | 473 | (unless contents-done |
| 474 | ;; Check out via standard output (caused by the final argument | 474 | ;; Check out via standard output (caused by the final argument |
| 475 | ;; FILE below), so that no sticky tag is set. | 475 | ;; FILE below), so that no sticky tag is set. |
| 476 | (vc-cvs-checkout file nil (vc-workfile-version file) file)) | 476 | ;; Change buffers to get local value of vc-checkout-switches. |
| 477 | (with-current-buffer (or (get-file-buffer file) (current-buffer)) | ||
| 478 | (let ((failed t) | ||
| 479 | (backup-name (car (find-backup-file-name file)))) | ||
| 480 | (when backup-name | ||
| 481 | (copy-file file backup-name | ||
| 482 | 'ok-if-already-exists 'keep-date)) | ||
| 483 | (unless (file-writable-p file) | ||
| 484 | (set-file-modes file (logior (file-modes file) 128))) | ||
| 485 | (unwind-protect | ||
| 486 | (let ((buf (vc-find-version file (vc-workfile-version file)))) | ||
| 487 | (rename-file (with-current-buffer buf buffer-file-name) | ||
| 488 | file 'ok-if-already-exists) | ||
| 489 | (setq failed nil)) | ||
| 490 | (if failed | ||
| 491 | (if backup-name | ||
| 492 | (rename-file backup-name file | ||
| 493 | 'ok-if-already-exists) | ||
| 494 | (if (file-exists-p file) | ||
| 495 | (delete-file file))) | ||
| 496 | (and backup-name | ||
| 497 | (not vc-make-backup-files) | ||
| 498 | (delete-file backup-name))))))) | ||
| 499 | |||
| 477 | (unless (eq (vc-checkout-model file) 'implicit) | 500 | (unless (eq (vc-checkout-model file) 'implicit) |
| 478 | (if vc-cvs-use-edit | 501 | (if vc-cvs-use-edit |
| 479 | (vc-cvs-command nil 0 file "unedit") | 502 | (vc-cvs-command nil 0 file "unedit") |