aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Spiegel2001-01-08 16:24:56 +0000
committerAndré Spiegel2001-01-08 16:24:56 +0000
commit34abd98e0be65561c00942fabb751eef84dc50bb (patch)
tree20899fa3643509f3184ca089334df96fa9d876d2
parent38d88d32ef061813a5cd3d990d61887ab8cc87d3 (diff)
downloademacs-34abd98e0be65561c00942fabb751eef84dc50bb.tar.gz
emacs-34abd98e0be65561c00942fabb751eef84dc50bb.zip
(vc-cvs-latest-on-branch-p): Removed.
(vc-cvs-checkout): Renamed arg WRITABLE to EDITABLE.
-rw-r--r--lisp/vc-cvs.el17
1 files changed, 5 insertions, 12 deletions
diff --git a/lisp/vc-cvs.el b/lisp/vc-cvs.el
index 4147c2d0e5b..f986b5f1557 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.12 2000/11/16 18:10:52 spiegel Exp $ 8;; $Id: vc-cvs.el,v 1.13 2000/11/20 14:16:18 spiegel Exp $
9 9
10;; This file is part of GNU Emacs. 10;; This file is part of GNU Emacs.
11 11
@@ -160,13 +160,6 @@ then VC only stays local for hosts that match it."
160 (vc-cvs-registered file) 160 (vc-cvs-registered file)
161 (vc-file-getprop file 'vc-workfile-version)) 161 (vc-file-getprop file 'vc-workfile-version))
162 162
163(defun vc-cvs-latest-on-branch-p (file)
164 "Return t iff current workfile version of FILE is the latest on its branch."
165 ;; Since this is only used as a sanity check for vc-cancel-version,
166 ;; and that is not supported under CVS at all, we can safely return t here.
167 ;; TODO: Think of getting rid of this altogether.
168 t)
169
170(defun vc-cvs-checkout-model (file) 163(defun vc-cvs-checkout-model (file)
171 "CVS-specific version of `vc-checkout-model'." 164 "CVS-specific version of `vc-checkout-model'."
172 (if (or (getenv "CVSREAD") 165 (if (or (getenv "CVSREAD")
@@ -292,9 +285,9 @@ This is only possible if CVS is responsible for FILE's directory."
292 ;; if this was an explicit check-in, remove the sticky tag 285 ;; if this was an explicit check-in, remove the sticky tag
293 (if rev (vc-do-command t 0 "cvs" file "update" "-A")))) 286 (if rev (vc-do-command t 0 "cvs" file "update" "-A"))))
294 287
295(defun vc-cvs-checkout (file &optional writable rev workfile) 288(defun vc-cvs-checkout (file &optional editable rev workfile)
296 "Retrieve a revision of FILE into a WORKFILE. 289 "Retrieve a revision of FILE into a WORKFILE.
297WRITABLE non-nil means that the file should be writable. 290EDITABLE non-nil means that the file should be writable.
298REV is the revision to check out into WORKFILE." 291REV is the revision to check out into WORKFILE."
299 (let ((filename (or workfile file)) 292 (let ((filename (or workfile file))
300 (file-buffer (get-file-buffer file)) 293 (file-buffer (get-file-buffer file))
@@ -350,7 +343,7 @@ REV is the revision to check out into WORKFILE."
350 (if (and (file-exists-p file) (not rev)) 343 (if (and (file-exists-p file) (not rev))
351 ;; If no revision was specified, just make the file writable 344 ;; If no revision was specified, just make the file writable
352 ;; if necessary (using `cvs-edit' if requested). 345 ;; if necessary (using `cvs-edit' if requested).
353 (and writable (not (eq (vc-cvs-checkout-model file) 'implicit)) 346 (and editable (not (eq (vc-cvs-checkout-model file) 'implicit))
354 (if vc-cvs-use-edit 347 (if vc-cvs-use-edit
355 (vc-do-command nil 0 "cvs" file "edit") 348 (vc-do-command nil 0 "cvs" file "edit")
356 (set-file-modes file (logior (file-modes file) 128)) 349 (set-file-modes file (logior (file-modes file) 128))
@@ -358,7 +351,7 @@ REV is the revision to check out into WORKFILE."
358 ;; Check out a particular version (or recreate the file). 351 ;; Check out a particular version (or recreate the file).
359 (vc-file-setprop file 'vc-workfile-version nil) 352 (vc-file-setprop file 'vc-workfile-version nil)
360 (apply 'vc-do-command nil 0 "cvs" file 353 (apply 'vc-do-command nil 0 "cvs" file
361 (and writable 354 (and editable
362 (or (not (file-exists-p file)) 355 (or (not (file-exists-p file))
363 (not (eq (vc-cvs-checkout-model file) 356 (not (eq (vc-cvs-checkout-model file)
364 'implicit))) 357 'implicit)))