diff options
| -rw-r--r-- | lisp/vc-cvs.el | 17 |
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. |
| 297 | WRITABLE non-nil means that the file should be writable. | 290 | EDITABLE non-nil means that the file should be writable. |
| 298 | REV is the revision to check out into WORKFILE." | 291 | REV 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))) |