diff options
| author | André Spiegel | 1999-04-08 12:43:48 +0000 |
|---|---|---|
| committer | André Spiegel | 1999-04-08 12:43:48 +0000 |
| commit | b9482d15fc48e2447c7f55122d94c8047e0261e4 (patch) | |
| tree | 94d944697045405a77624f450206afabc2a54b14 | |
| parent | 36e20969343c1a24e27c0fc3bb5a103d5a3a0359 (diff) | |
| download | emacs-b9482d15fc48e2447c7f55122d94c8047e0261e4.tar.gz emacs-b9482d15fc48e2447c7f55122d94c8047e0261e4.zip | |
(vc-backend-revert): For CVS files that were made writeable with "cvs
edit", call "cvs unedit" to undo that.
| -rw-r--r-- | lisp/vc.el | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lisp/vc.el b/lisp/vc.el index 91a12255483..7b1411118d9 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; Author: Eric S. Raymond <esr@snark.thyrsus.com> | 5 | ;; Author: Eric S. Raymond <esr@snark.thyrsus.com> |
| 6 | ;; Maintainer: Andre Spiegel <spiegel@inf.fu-berlin.de> | 6 | ;; Maintainer: Andre Spiegel <spiegel@inf.fu-berlin.de> |
| 7 | 7 | ||
| 8 | ;; $Id: vc.el,v 1.243 1999/01/22 16:28:12 spiegel Exp kwzh $ | 8 | ;; $Id: vc.el,v 1.244 1999/03/13 05:04:24 kwzh Exp spiegel $ |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | 11 | ||
| @@ -2856,9 +2856,14 @@ THRESHOLD, nil otherwise" | |||
| 2856 | (vc-do-command nil 0 "co" file 'MASTER | 2856 | (vc-do-command nil 0 "co" file 'MASTER |
| 2857 | "-f" (concat "-u" (vc-workfile-version file))) | 2857 | "-f" (concat "-u" (vc-workfile-version file))) |
| 2858 | ;; CVS | 2858 | ;; CVS |
| 2859 | ;; Check out via standard output (caused by the final argument | 2859 | (progn |
| 2860 | ;; FILE below), so that no sticky tag is set. | 2860 | ;; Check out via standard output (caused by the final argument |
| 2861 | (vc-backend-checkout file nil (vc-workfile-version file) file)) | 2861 | ;; FILE below), so that no sticky tag is set. |
| 2862 | (vc-backend-checkout file nil (vc-workfile-version file) file) | ||
| 2863 | ;; If "cvs edit" was used to make the file writeable, | ||
| 2864 | ;; call "cvs unedit" now to undo that. | ||
| 2865 | (if (eq (vc-checkout-model file) 'manual) | ||
| 2866 | (vc-do-command nil 0 "cvs" file 'WORKFILE "unedit")))) | ||
| 2862 | (vc-file-setprop file 'vc-locking-user 'none) | 2867 | (vc-file-setprop file 'vc-locking-user 'none) |
| 2863 | (vc-file-setprop file 'vc-checkout-time (nth 5 (file-attributes file))) | 2868 | (vc-file-setprop file 'vc-checkout-time (nth 5 (file-attributes file))) |
| 2864 | (message "Reverting %s...done" file) | 2869 | (message "Reverting %s...done" file) |