summaryrefslogtreecommitdiff
path: root/lisp/vc-mcvs.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2004-01-20 21:56:16 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2004-01-20 21:56:16 +0000
commitb6c4e4e088cba3d70649c04be7871f056f33fa3e (patch)
tree359c110c8539e259cec8e5a9739f62b963e9ef62 /lisp/vc-mcvs.el
parent9076a823112d9decd0343cb2265eae8bb9c4c50f (diff)
downloademacs-b6c4e4e088cba3d70649c04be7871f056f33fa3e.tar.gz
(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/vc-mcvs.el')
-rw-r--r--lisp/vc-mcvs.el25
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 @@
;;; vc-mcvs.el --- VC backend for the Meta-CVS version-control system
-;; Copyright (C) 1995,98,99,2000,01,02,2003 Free Software Foundation, Inc.
+;; Copyright (C) 1995,98,99,2000,01,02,03,2004 Free Software Foundation, Inc.
;; Author: FSF (see vc.el for full credits)
;; Maintainer: Stefan Monnier <monnier@gnu.org>
@@ -170,13 +170,6 @@ This is only meaningful if you don't use the implicit checkout model
0))
t)))
-(defmacro vc-mcvs-cvs (op file &rest args)
- (declare (debug t))
- `(,(intern (concat "vc-cvs-" (symbol-name op)))
- (expand-file-name (vc-file-getprop ,file 'mcvs-inode)
- (vc-file-getprop ,file 'mcvs-root))
- ,@args))
-
(defun vc-mcvs-state (file)
;; This would assume the Meta-CVS sandbox is synchronized.
;; (vc-mcvs-cvs state file))
@@ -215,19 +208,13 @@ This is only meaningful if you don't use the implicit checkout model
(goto-char (point-max))
(widen)))))))
-(defun vc-mcvs-workfile-version (file) (vc-mcvs-cvs workfile-version file))
+(defun vc-mcvs-workfile-version (file)
+ (vc-cvs-workfile-version
+ (expand-file-name (vc-file-getprop file 'mcvs-inode)
+ (vc-file-getprop file 'mcvs-root))))
(defalias 'vc-mcvs-checkout-model 'vc-cvs-checkout-model)
-(defun vc-mcvs-mode-line-string (file)
- (let ((s (vc-mcvs-cvs mode-line-string file)))
- (when s
- (if (and (not (memq (vc-state file) '(up-to-date needs-patch)))
- (string-match "\\`CVS-" s))
- ;; The CVS file is not in sync, so we need to adjust the state.
- (concat "MCVS:" (substring s 4))
- (concat "M" s)))))
-
;;;
;;; State-changing functions
;;;
@@ -589,7 +576,7 @@ and that it passes `vc-mcvs-global-switches' to it before FLAGS."
;; We need to filter the output.
;; The output of the filter uses filenames relative to the root,
;; so we need to change the default-directory.
- (assert (equal default-directory (vc-mcvs-root file)))
+ ;; (assert (equal default-directory (vc-mcvs-root file)))
(vc-do-command
buffer okstatus "sh" nil "-c"
(concat "mcvs "