aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Spiegel1998-04-14 12:38:25 +0000
committerAndré Spiegel1998-04-14 12:38:25 +0000
commit4b81132cafbf7497edbb0b96535e5f1de0a25bf1 (patch)
treedf2cc06a174997ecf9dd6b85ba5d17dc6ef9632f
parent0120348b5921a5e788d32df54f36fc80ca7f719f (diff)
downloademacs-4b81132cafbf7497edbb0b96535e5f1de0a25bf1.tar.gz
emacs-4b81132cafbf7497edbb0b96535e5f1de0a25bf1.zip
(vc-next-action-on-file): Don't check out after registering. This is
two steps instead of one, and the second does not make sense under CVS. (vc-next-action): Changed doc string to reflect the above.
-rw-r--r--lisp/vc.el17
1 files changed, 6 insertions, 11 deletions
diff --git a/lisp/vc.el b/lisp/vc.el
index cc9c2608517..dc3233cfa33 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.219 1998/04/05 18:54:35 spiegel Exp spiegel $ 8;; $Id: vc.el,v 1.220 1998/04/09 13:45:44 spiegel Exp spiegel $
9 9
10;; This file is part of GNU Emacs. 10;; This file is part of GNU Emacs.
11 11
@@ -733,18 +733,13 @@ before the filename."
733 733
734(defun vc-next-action-on-file (file verbose &optional comment) 734(defun vc-next-action-on-file (file verbose &optional comment)
735 ;;; If comment is specified, it will be used as an admin or checkin comment. 735 ;;; If comment is specified, it will be used as an admin or checkin comment.
736 (let ((vc-file (vc-name file)) 736 (let ((vc-type (vc-backend file))
737 (vc-type (vc-backend file))
738 owner version buffer) 737 owner version buffer)
739 (cond 738 (cond
740 739
741 ;; if there is no master file corresponding, create one 740 ;; If the file is not under version control, register it
742 ((not vc-file) 741 ((not vc-type)
743 (vc-register verbose comment) 742 (vc-register verbose comment))
744 (if vc-initial-comment
745 (setq vc-log-after-operation-hook
746 'vc-checkout-writable-buffer-hook)
747 (vc-checkout-writable-buffer file)))
748 743
749 ;; CVS: changes to the master file need to be 744 ;; CVS: changes to the master file need to be
750 ;; merged back into the working file 745 ;; merged back into the working file
@@ -915,7 +910,7 @@ lock steals will raise an error.
915 910
916For RCS and SCCS files: 911For RCS and SCCS files:
917 If the file is not already registered, this registers it for version 912 If the file is not already registered, this registers it for version
918control and then retrieves a writable, locked copy for editing. 913control.
919 If the file is registered and not locked by anyone, this checks out 914 If the file is registered and not locked by anyone, this checks out
920a writable and locked file ready for editing. 915a writable and locked file ready for editing.
921 If the file is checked out and locked by the calling user, this 916 If the file is checked out and locked by the calling user, this