diff options
| author | Stefan Monnier | 2004-01-20 21:56:16 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2004-01-20 21:56:16 +0000 |
| commit | b6c4e4e088cba3d70649c04be7871f056f33fa3e (patch) | |
| tree | 359c110c8539e259cec8e5a9739f62b963e9ef62 /lisp | |
| parent | 9076a823112d9decd0343cb2265eae8bb9c4c50f (diff) | |
| download | emacs-b6c4e4e088cba3d70649c04be7871f056f33fa3e.tar.gz emacs-b6c4e4e088cba3d70649c04be7871f056f33fa3e.zip | |
(vc-mcvs-mode-line-string): Remove. Does not work.
(vc-mcvs-workfile-version): Manually macro expand vc-mcvs-cvs.
(vc-mcvs-cvs): Remove.
(vc-mcvs-command): Remove use of assert.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/vc-mcvs.el | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/lisp/vc-mcvs.el b/lisp/vc-mcvs.el index 033b14e6f10..94beb7eb093 100644 --- a/lisp/vc-mcvs.el +++ b/lisp/vc-mcvs.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; vc-mcvs.el --- VC backend for the Meta-CVS version-control system | 1 | ;;; vc-mcvs.el --- VC backend for the Meta-CVS version-control system |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1995,98,99,2000,01,02,2003 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1995,98,99,2000,01,02,03,2004 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: FSF (see vc.el for full credits) | 5 | ;; Author: FSF (see vc.el for full credits) |
| 6 | ;; Maintainer: Stefan Monnier <monnier@gnu.org> | 6 | ;; Maintainer: Stefan Monnier <monnier@gnu.org> |
| @@ -170,13 +170,6 @@ This is only meaningful if you don't use the implicit checkout model | |||
| 170 | 0)) | 170 | 0)) |
| 171 | t))) | 171 | t))) |
| 172 | 172 | ||
| 173 | (defmacro vc-mcvs-cvs (op file &rest args) | ||
| 174 | (declare (debug t)) | ||
| 175 | `(,(intern (concat "vc-cvs-" (symbol-name op))) | ||
| 176 | (expand-file-name (vc-file-getprop ,file 'mcvs-inode) | ||
| 177 | (vc-file-getprop ,file 'mcvs-root)) | ||
| 178 | ,@args)) | ||
| 179 | |||
| 180 | (defun vc-mcvs-state (file) | 173 | (defun vc-mcvs-state (file) |
| 181 | ;; This would assume the Meta-CVS sandbox is synchronized. | 174 | ;; This would assume the Meta-CVS sandbox is synchronized. |
| 182 | ;; (vc-mcvs-cvs state file)) | 175 | ;; (vc-mcvs-cvs state file)) |
| @@ -215,19 +208,13 @@ This is only meaningful if you don't use the implicit checkout model | |||
| 215 | (goto-char (point-max)) | 208 | (goto-char (point-max)) |
| 216 | (widen))))))) | 209 | (widen))))))) |
| 217 | 210 | ||
| 218 | (defun vc-mcvs-workfile-version (file) (vc-mcvs-cvs workfile-version file)) | 211 | (defun vc-mcvs-workfile-version (file) |
| 212 | (vc-cvs-workfile-version | ||
| 213 | (expand-file-name (vc-file-getprop file 'mcvs-inode) | ||
| 214 | (vc-file-getprop file 'mcvs-root)))) | ||
| 219 | 215 | ||
| 220 | (defalias 'vc-mcvs-checkout-model 'vc-cvs-checkout-model) | 216 | (defalias 'vc-mcvs-checkout-model 'vc-cvs-checkout-model) |
| 221 | 217 | ||
| 222 | (defun vc-mcvs-mode-line-string (file) | ||
| 223 | (let ((s (vc-mcvs-cvs mode-line-string file))) | ||
| 224 | (when s | ||
| 225 | (if (and (not (memq (vc-state file) '(up-to-date needs-patch))) | ||
| 226 | (string-match "\\`CVS-" s)) | ||
| 227 | ;; The CVS file is not in sync, so we need to adjust the state. | ||
| 228 | (concat "MCVS:" (substring s 4)) | ||
| 229 | (concat "M" s))))) | ||
| 230 | |||
| 231 | ;;; | 218 | ;;; |
| 232 | ;;; State-changing functions | 219 | ;;; State-changing functions |
| 233 | ;;; | 220 | ;;; |
| @@ -589,7 +576,7 @@ and that it passes `vc-mcvs-global-switches' to it before FLAGS." | |||
| 589 | ;; We need to filter the output. | 576 | ;; We need to filter the output. |
| 590 | ;; The output of the filter uses filenames relative to the root, | 577 | ;; The output of the filter uses filenames relative to the root, |
| 591 | ;; so we need to change the default-directory. | 578 | ;; so we need to change the default-directory. |
| 592 | (assert (equal default-directory (vc-mcvs-root file))) | 579 | ;; (assert (equal default-directory (vc-mcvs-root file))) |
| 593 | (vc-do-command | 580 | (vc-do-command |
| 594 | buffer okstatus "sh" nil "-c" | 581 | buffer okstatus "sh" nil "-c" |
| 595 | (concat "mcvs " | 582 | (concat "mcvs " |