From b9482d15fc48e2447c7f55122d94c8047e0261e4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Spiegel?= Date: Thu, 8 Apr 1999 12:43:48 +0000 Subject: [PATCH] (vc-backend-revert): For CVS files that were made writeable with "cvs edit", call "cvs unedit" to undo that. --- lisp/vc.el | 13 +++++++++---- 1 file 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 @@ ;; Author: Eric S. Raymond ;; Maintainer: Andre Spiegel -;; $Id: vc.el,v 1.243 1999/01/22 16:28:12 spiegel Exp kwzh $ +;; $Id: vc.el,v 1.244 1999/03/13 05:04:24 kwzh Exp spiegel $ ;; This file is part of GNU Emacs. @@ -2856,9 +2856,14 @@ THRESHOLD, nil otherwise" (vc-do-command nil 0 "co" file 'MASTER "-f" (concat "-u" (vc-workfile-version file))) ;; CVS - ;; Check out via standard output (caused by the final argument - ;; FILE below), so that no sticky tag is set. - (vc-backend-checkout file nil (vc-workfile-version file) file)) + (progn + ;; Check out via standard output (caused by the final argument + ;; FILE below), so that no sticky tag is set. + (vc-backend-checkout file nil (vc-workfile-version file) file) + ;; If "cvs edit" was used to make the file writeable, + ;; call "cvs unedit" now to undo that. + (if (eq (vc-checkout-model file) 'manual) + (vc-do-command nil 0 "cvs" file 'WORKFILE "unedit")))) (vc-file-setprop file 'vc-locking-user 'none) (vc-file-setprop file 'vc-checkout-time (nth 5 (file-attributes file))) (message "Reverting %s...done" file) -- 2.39.2