diff options
| author | André Spiegel | 2001-01-08 16:25:43 +0000 |
|---|---|---|
| committer | André Spiegel | 2001-01-08 16:25:43 +0000 |
| commit | fe96236468cb5feb3b8d96d1e40c48a001d53189 (patch) | |
| tree | 27d243db10840df119e9c6a5e503da07487819eb | |
| parent | 34abd98e0be65561c00942fabb751eef84dc50bb (diff) | |
| download | emacs-fe96236468cb5feb3b8d96d1e40c48a001d53189.tar.gz emacs-fe96236468cb5feb3b8d96d1e40c48a001d53189.zip | |
(vc-rcs-checkout, vc-rcs-cancel-version): Renamed arg WRITABLE to EDITABLE.
| -rw-r--r-- | lisp/vc-rcs.el | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lisp/vc-rcs.el b/lisp/vc-rcs.el index e17d0d6da27..0c29fd2672e 100644 --- a/lisp/vc-rcs.el +++ b/lisp/vc-rcs.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-rcs.el,v 1.13 2000/11/19 09:46:04 spiegel Exp $ | 8 | ;; $Id: vc-rcs.el,v 1.14 2000/11/20 14:14:25 spiegel Exp $ |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | 11 | ||
| @@ -365,7 +365,7 @@ whether to remove it." | |||
| 365 | (vc-do-command nil 1 "rcs" (vc-name file) | 365 | (vc-do-command nil 1 "rcs" (vc-name file) |
| 366 | (concat "-u" old-version)))))))) | 366 | (concat "-u" old-version)))))))) |
| 367 | 367 | ||
| 368 | (defun vc-rcs-checkout (file &optional writable rev workfile) | 368 | (defun vc-rcs-checkout (file &optional editable rev workfile) |
| 369 | "Retrieve a copy of a saved version of FILE into a workfile." | 369 | "Retrieve a copy of a saved version of FILE into a workfile." |
| 370 | (let ((filename (or workfile file)) | 370 | (let ((filename (or workfile file)) |
| 371 | (file-buffer (get-file-buffer file)) | 371 | (file-buffer (get-file-buffer file)) |
| @@ -389,7 +389,7 @@ whether to remove it." | |||
| 389 | ;; RCS can't check out into arbitrary file names directly. | 389 | ;; RCS can't check out into arbitrary file names directly. |
| 390 | ;; Use `co -p' and make stdout point to the correct file. | 390 | ;; Use `co -p' and make stdout point to the correct file. |
| 391 | (let ((vc-modes (logior (file-modes (vc-name file)) | 391 | (let ((vc-modes (logior (file-modes (vc-name file)) |
| 392 | (if writable 128 0))) | 392 | (if editable 128 0))) |
| 393 | (failed t)) | 393 | (failed t)) |
| 394 | (unwind-protect | 394 | (unwind-protect |
| 395 | (progn | 395 | (progn |
| @@ -399,12 +399,12 @@ whether to remove it." | |||
| 399 | (apply 'vc-do-command | 399 | (apply 'vc-do-command |
| 400 | (current-buffer) 0 "co" (vc-name file) | 400 | (current-buffer) 0 "co" (vc-name file) |
| 401 | "-q" ;; suppress diagnostic output | 401 | "-q" ;; suppress diagnostic output |
| 402 | (if writable "-l") | 402 | (if editable "-l") |
| 403 | (concat "-p" rev) | 403 | (concat "-p" rev) |
| 404 | switches))) | 404 | switches))) |
| 405 | (set-file-modes filename | 405 | (set-file-modes filename |
| 406 | (logior (file-modes (vc-name file)) | 406 | (logior (file-modes (vc-name file)) |
| 407 | (if writable 128 0))) | 407 | (if editable 128 0))) |
| 408 | (setq failed nil)) | 408 | (setq failed nil)) |
| 409 | (and failed (file-exists-p filename) | 409 | (and failed (file-exists-p filename) |
| 410 | (delete-file filename)))) | 410 | (delete-file filename)))) |
| @@ -419,7 +419,7 @@ whether to remove it." | |||
| 419 | ;; If locking is not strict, force to overwrite | 419 | ;; If locking is not strict, force to overwrite |
| 420 | ;; the writable workfile. | 420 | ;; the writable workfile. |
| 421 | (if (eq (vc-checkout-model file) 'implicit) "-f") | 421 | (if (eq (vc-checkout-model file) 'implicit) "-f") |
| 422 | (if writable "-l") | 422 | (if editable "-l") |
| 423 | (if rev (concat "-r" rev) | 423 | (if rev (concat "-r" rev) |
| 424 | ;; if no explicit revision was specified, | 424 | ;; if no explicit revision was specified, |
| 425 | ;; check out that of the working file | 425 | ;; check out that of the working file |
| @@ -447,9 +447,9 @@ whether to remove it." | |||
| 447 | (vc-do-command nil 0 "co" (vc-name file) "-f" | 447 | (vc-do-command nil 0 "co" (vc-name file) "-f" |
| 448 | (concat "-u" (vc-workfile-version file)))) | 448 | (concat "-u" (vc-workfile-version file)))) |
| 449 | 449 | ||
| 450 | (defun vc-rcs-cancel-version (file writable) | 450 | (defun vc-rcs-cancel-version (file editable) |
| 451 | "Undo the most recent checkin of FILE. | 451 | "Undo the most recent checkin of FILE. |
| 452 | WRITABLE non-nil means previous version should be locked." | 452 | EDITABLE non-nil means previous version should be locked." |
| 453 | (let* ((target (vc-workfile-version file)) | 453 | (let* ((target (vc-workfile-version file)) |
| 454 | (previous (if (vc-trunk-p target) "" (vc-branch-part target))) | 454 | (previous (if (vc-trunk-p target) "" (vc-branch-part target))) |
| 455 | (config (current-window-configuration)) | 455 | (config (current-window-configuration)) |
| @@ -462,7 +462,7 @@ WRITABLE non-nil means previous version should be locked." | |||
| 462 | (condition-case err | 462 | (condition-case err |
| 463 | (progn | 463 | (progn |
| 464 | (vc-do-command nil 0 "co" (vc-name file) "-f" | 464 | (vc-do-command nil 0 "co" (vc-name file) "-f" |
| 465 | (concat (if writable "-l" "-u") previous)) | 465 | (concat (if editable "-l" "-u") previous)) |
| 466 | (setq done t)) | 466 | (setq done t)) |
| 467 | (error (set-buffer "*vc*") | 467 | (error (set-buffer "*vc*") |
| 468 | (goto-char (point-min)) | 468 | (goto-char (point-min)) |