(thumbs-call-convert): Use call-process directly
[emacs.git] / lisp / vc-mcvs.el
blobba0ccf47747070b57dc19ecb96fe2eea4336dc99
1 ;;; vc-mcvs.el --- VC backend for the Meta-CVS version-control system
3 ;; Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
5 ;; Author: FSF (see vc.el for full credits)
6 ;; Maintainer: Stefan Monnier <monnier@gnu.org>
8 ;; This file is part of GNU Emacs.
10 ;; GNU Emacs is free software; you can redistribute it and/or modify
11 ;; it under the terms of the GNU General Public License as published by
12 ;; the Free Software Foundation; either version 3, or (at your option)
13 ;; any later version.
15 ;; GNU Emacs is distributed in the hope that it will be useful,
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ;; GNU General Public License for more details.
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
22 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23 ;; Boston, MA 02110-1301, USA.
25 ;;; Commentary:
27 ;; The home page of the Meta-CVS version control system is at
29 ;; http://users.footprints.net/~kaz/mcvs.html
31 ;; This is derived from vc-cvs.el as follows:
32 ;; - cp vc-cvs.el vc-mcvs.el
33 ;; - Replace CVS/ with MCVS/CVS/
34 ;; - Replace 'CVS with 'MCVS
35 ;; - Replace -cvs- with -mcvs-
36 ;; - Replace most of the rest of CVS to Meta-CVS
38 ;; Then of course started the hacking. Only a small part of the code
39 ;; has been touched and not much more than that was tested, so if
40 ;; you bump into a bug, don't be surprised: just report it to me.
42 ;; What has been partly tested:
43 ;; - C-x v v to start editing a file that was checked out with CVSREAD on.
44 ;; - C-x v v to commit a file
45 ;; - C-x v =
46 ;; - C-x v l
47 ;; - C-x v i
48 ;; - C-x v g
49 ;; - M-x vc-rename-file RET
51 ;;; Bugs:
53 ;; - Retrieving snapshots doesn't filter `cvs update' output and thus
54 ;; parses bogus filenames. Don't know if it harms.
56 ;;; Code:
58 (eval-when-compile (require 'vc))
59 (require 'vc-cvs)
61 ;;;
62 ;;; Customization options
63 ;;;
65 (defcustom vc-mcvs-global-switches nil
66 "*Global switches to pass to any Meta-CVS command."
67 :type '(choice (const :tag "None" nil)
68 (string :tag "Argument String")
69 (repeat :tag "Argument List"
70 :value ("")
71 string))
72 :version "22.1"
73 :group 'vc)
75 (defcustom vc-mcvs-register-switches nil
76 "*Extra switches for registering a file into Meta-CVS.
77 A string or list of strings passed to the checkin program by
78 \\[vc-register]."
79 :type '(choice (const :tag "None" nil)
80 (string :tag "Argument String")
81 (repeat :tag "Argument List"
82 :value ("")
83 string))
84 :version "22.1"
85 :group 'vc)
87 (defcustom vc-mcvs-diff-switches nil
88 "*A string or list of strings specifying extra switches for cvs diff under VC."
89 :type '(choice (const :tag "None" nil)
90 (string :tag "Argument String")
91 (repeat :tag "Argument List"
92 :value ("")
93 string))
94 :version "22.1"
95 :group 'vc)
97 (defcustom vc-mcvs-header (or (cdr (assoc 'MCVS vc-header-alist))
98 vc-cvs-header)
99 "*Header keywords to be inserted by `vc-insert-headers'."
100 :version "22.1"
101 :type '(repeat string)
102 :group 'vc)
104 (defcustom vc-mcvs-use-edit vc-cvs-use-edit
105 "*Non-nil means to use `cvs edit' to \"check out\" a file.
106 This is only meaningful if you don't use the implicit checkout model
107 \(i.e. if you have $CVSREAD set)."
108 :type 'boolean
109 :version "22.1"
110 :group 'vc)
112 ;;; Properties of the backend
114 (defun vc-mcvs-revision-granularity ()
115 'file)
118 ;;; State-querying functions
121 ;;;###autoload (defun vc-mcvs-registered (file)
122 ;;;###autoload (if (vc-find-root file "MCVS/CVS")
123 ;;;###autoload (progn
124 ;;;###autoload (load "vc-mcvs")
125 ;;;###autoload (vc-mcvs-registered file))))
127 (defun vc-mcvs-root (file)
128 "Return the root directory of a Meta-CVS project, if any."
129 (or (vc-file-getprop file 'mcvs-root)
130 (vc-file-setprop file 'mcvs-root (vc-find-root file "MCVS/CVS"))))
132 (defun vc-mcvs-read (file)
133 (if (file-readable-p file)
134 (with-temp-buffer
135 (insert-file-contents file)
136 (goto-char (point-min))
137 (read (current-buffer)))))
139 (defun vc-mcvs-map-file (dir file)
140 (let ((map (vc-mcvs-read (expand-file-name "MCVS/MAP" dir)))
141 inode)
142 (dolist (x map inode)
143 (if (equal (nth 2 x) file) (setq inode (nth 1 x))))))
145 (defun vc-mcvs-registered (file)
146 (let (root inode cvsfile)
147 (when (and (setq root (vc-mcvs-root file))
148 (setq inode (vc-mcvs-map-file
149 root (file-relative-name file root))))
150 (vc-file-setprop file 'mcvs-inode inode)
151 ;; Avoid calling `mcvs diff' in vc-workfile-unchanged-p.
152 (vc-file-setprop file 'vc-checkout-time
153 (if (vc-cvs-registered
154 (setq cvsfile (expand-file-name inode root)))
155 (vc-file-getprop cvsfile 'vc-checkout-time)
156 ;; The file might not be registered yet because
157 ;; of lazy-adding.
159 t)))
161 (defun vc-mcvs-state (file)
162 ;; This would assume the Meta-CVS sandbox is synchronized.
163 ;; (vc-mcvs-cvs state file))
164 "Meta-CVS-specific version of `vc-state'."
165 (if (vc-stay-local-p file)
166 (let ((state (vc-file-getprop file 'vc-state)))
167 ;; If we should stay local, use the heuristic but only if
168 ;; we don't have a more precise state already available.
169 (if (memq state '(up-to-date edited))
170 (vc-mcvs-state-heuristic file)
171 state))
172 (with-temp-buffer
173 (setq default-directory (vc-mcvs-root file))
174 (vc-mcvs-command t 0 file "status")
175 (vc-cvs-parse-status t))))
178 (defalias 'vc-mcvs-state-heuristic 'vc-cvs-state-heuristic)
180 (defun vc-mcvs-dir-state (dir)
181 "Find the Meta-CVS state of all files in DIR and subdirectories."
182 ;; if DIR is not under Meta-CVS control, don't do anything.
183 (when (file-readable-p (expand-file-name "MCVS/CVS/Entries" dir))
184 (if (vc-stay-local-p dir)
185 (vc-mcvs-dir-state-heuristic dir)
186 (let ((default-directory dir))
187 ;; Don't specify DIR in this command, the default-directory is
188 ;; enough. Otherwise it might fail with remote repositories.
189 (with-temp-buffer
190 (setq default-directory (vc-mcvs-root dir))
191 (vc-mcvs-command t 0 nil "status")
192 (goto-char (point-min))
193 (while (re-search-forward "^=+\n\\([^=\n].*\n\\|\n\\)+" nil t)
194 (narrow-to-region (match-beginning 0) (match-end 0))
195 (vc-cvs-parse-status)
196 (goto-char (point-max))
197 (widen)))))))
199 (defun vc-mcvs-working-revision (file)
200 (vc-cvs-working-revision
201 (expand-file-name (vc-file-getprop file 'mcvs-inode)
202 (vc-file-getprop file 'mcvs-root))))
204 (defalias 'vc-mcvs-checkout-model 'vc-cvs-checkout-model)
207 ;;; State-changing functions
210 (defun vc-mcvs-register (files &optional rev comment)
211 "Register FILES into the Meta-CVS version-control system.
212 COMMENT can be used to provide an initial description of FILE.
214 `vc-register-switches' and `vc-mcvs-register-switches' are passed to
215 the Meta-CVS command (in that order)."
216 ;; FIXME: multiple-file case should be made to work
217 (if (> (length files) 1) (error "Registering filesets is not yet supported."))
218 (let* ((file (car files))
219 (filename (file-name-nondirectory file))
220 (extpos (string-match "\\." filename))
221 (ext (if extpos (substring filename (1+ extpos))))
222 (root (vc-mcvs-root file))
223 (types-file (expand-file-name "MCVS/TYPES" root))
224 (map-file (expand-file-name "MCVS/MAP" root))
225 (types (vc-mcvs-read types-file)))
226 ;; Make sure meta files like MCVS/MAP are not read-only (happens with
227 ;; CVSREAD) since Meta-CVS doesn't pay attention to it at all and goes
228 ;; belly-up.
229 (unless (file-writable-p map-file)
230 (vc-checkout map-file t))
231 (unless (or (file-writable-p types-file) (not (file-exists-p types-file)))
232 (vc-checkout types-file t))
233 ;; Make sure the `mcvs add' will not fire up the CVSEDITOR
234 ;; to add a rule for the given file's extension.
235 (when (and ext (not (assoc ext types)))
236 (let ((type (completing-read "Type to use (default): "
237 '("default" "name-only" "keep-old"
238 "binary" "value-only")
239 nil t nil nil "default")))
240 (push (list ext (make-symbol (upcase (concat ":" type)))) types)
241 (setq types (sort types (lambda (x y) (string< (car x) (car y)))))
242 (with-current-buffer (find-file-noselect types-file)
243 (erase-buffer)
244 (pp types (current-buffer))
245 (save-buffer)
246 (unless (get-buffer-window (current-buffer) t)
247 (kill-buffer (current-buffer)))))))
248 ;; Now do the ADD.
249 (prog1 (apply 'vc-mcvs-command nil 0 file
250 "add"
251 (and comment (string-match "[^\t\n ]" comment)
252 (concat "-m" comment))
253 (vc-switches 'MCVS 'register))
254 ;; I'm not sure exactly why, but if we don't setup the inode and root
255 ;; prop of the file, things break later on in vc-mode-line that
256 ;; ends up calling vc-mcvs-working-revision.
257 ;; We also need to set vc-checkout-time so that vc-workfile-unchanged-p
258 ;; doesn't try to call `mcvs diff' on the file.
259 (vc-mcvs-registered file)))
261 (defalias 'vc-mcvs-responsible-p 'vc-mcvs-root
262 "Return non-nil if CVS thinks it is responsible for FILE.")
264 (defalias 'vc-cvs-could-register 'vc-cvs-responsible-p
265 "Return non-nil if FILE could be registered in Meta-CVS.
266 This is only possible if Meta-CVS is responsible for FILE's directory.")
268 (defun vc-mcvs-checkin (files rev comment)
269 "Meta-CVS-specific version of `vc-backend-checkin'."
270 (unless (or (not rev) (vc-mcvs-valid-revision-number-p rev))
271 (if (not (vc-mcvs-valid-symbolic-tag-name-p rev))
272 (error "%s is not a valid symbolic tag name" rev)
273 ;; If the input revision is a valid symbolic tag name, we create it
274 ;; as a branch, commit and switch to it.
275 ;; This file-specific form of branching is deprecated.
276 ;; We can't use `mcvs branch' and `mcvs switch' because they cannot
277 ;; be applied just to this one file.
278 (apply 'vc-mcvs-command nil 0 files "tag" "-b" (list rev))
279 (apply 'vc-mcvs-command nil 0 files "update" "-r" (list rev))
280 (mapc (lambda (file) (vc-file-setprop file 'vc-mcvs-sticky-tag rev))
281 files)
282 (setq rev nil)))
283 ;; This commit might cvs-commit several files (e.g. MAP and TYPES)
284 ;; so using numbered revs here is dangerous and somewhat meaningless.
285 (when rev (error "Cannot commit to a specific revision number"))
286 (let ((status (apply 'vc-mcvs-command nil 1 files
287 "ci" "-m" comment
288 (vc-switches 'MCVS 'checkin))))
289 (set-buffer "*vc*")
290 (goto-char (point-min))
291 (when (not (zerop status))
292 ;; Check checkin problem.
293 (cond
294 ((re-search-forward "Up-to-date check failed" nil t)
295 (mapc (lambda (file) (vc-file-setprop file 'vc-state 'needs-merge))
296 files)
297 (error "%s" (substitute-command-keys
298 (concat "Up-to-date check failed: "
299 "type \\[vc-next-action] to merge in changes"))))
301 (pop-to-buffer (current-buffer))
302 (goto-char (point-min))
303 (shrink-window-if-larger-than-buffer)
304 (error "Check-in failed"))))
305 ;; Single-file commit? Then update the revision by parsing the buffer.
306 ;; Otherwise we can't necessarily tell what goes with what; clear
307 ;; its properties so they have to be refetched.
308 (if (= (length files) 1)
309 (vc-file-setprop
310 (car files) 'vc-working-revision
311 (vc-parse-buffer "^\\(new\\|initial\\) revision: \\([0-9.]+\\)" 2))
312 (mapc (lambda (file) (vc-file-clearprops file)) files))
313 ;; Anyway, forget the checkout model of the file, because we might have
314 ;; guessed wrong when we found the file. After commit, we can
315 ;; tell it from the permissions of the file (see
316 ;; vc-mcvs-checkout-model).
317 (mapc (lambda (file) (vc-file-setprop file 'vc-checkout-model nil))
318 files)
320 ;; if this was an explicit check-in (does not include creation of
321 ;; a branch), remove the sticky tag.
322 (if (and rev (not (vc-mcvs-valid-symbolic-tag-name-p rev)))
323 (vc-mcvs-command nil 0 files "update" "-A"))))
325 (defun vc-mcvs-find-revision (file rev buffer)
326 (apply 'vc-mcvs-command
327 buffer 0 file
328 "-Q" ; suppress diagnostic output
329 "update"
330 (and rev (not (string= rev ""))
331 (concat "-r" rev))
332 "-p"
333 (vc-switches 'MCVS 'checkout)))
335 (defun vc-mcvs-checkout (file &optional editable rev)
336 (message "Checking out %s..." file)
337 (with-current-buffer (or (get-file-buffer file) (current-buffer))
338 (vc-call update file editable rev (vc-switches 'MCVS 'checkout)))
339 (vc-mode-line file)
340 (message "Checking out %s...done" file))
342 (defun vc-mcvs-update (file editable rev switches)
343 (if (and (file-exists-p file) (not rev))
344 ;; If no revision was specified, just make the file writable
345 ;; if necessary (using `cvs-edit' if requested).
346 (and editable (not (eq (vc-mcvs-checkout-model file) 'implicit))
347 (if vc-mcvs-use-edit
348 (vc-mcvs-command nil 0 file "edit")
349 (set-file-modes file (logior (file-modes file) 128))
350 (if (equal file buffer-file-name) (toggle-read-only -1))))
351 ;; Check out a particular revision (or recreate the file).
352 (vc-file-setprop file 'vc-working-revision nil)
353 (apply 'vc-mcvs-command nil 0 file
354 (if editable "-w")
355 "update"
356 ;; default for verbose checkout: clear the sticky tag so
357 ;; that the actual update will get the head of the trunk
358 (if (or (not rev) (string= rev ""))
359 "-A"
360 (concat "-r" rev))
361 switches)))
363 (defun vc-mcvs-rename-file (old new)
364 (vc-mcvs-command nil 0 new "move" (file-relative-name old)))
366 (defun vc-mcvs-revert (file &optional contents-done)
367 "Revert FILE to the working revision it was based on."
368 (vc-default-revert 'MCVS file contents-done)
369 (unless (eq (vc-checkout-model file) 'implicit)
370 (if vc-mcvs-use-edit
371 (vc-mcvs-command nil 0 file "unedit")
372 ;; Make the file read-only by switching off all w-bits
373 (set-file-modes file (logand (file-modes file) 3950)))))
375 (defun vc-mcvs-merge (file first-revision &optional second-revision)
376 "Merge changes into current working copy of FILE.
377 The changes are between FIRST-REVISION and SECOND-REVISION."
378 (vc-mcvs-command nil 0 file
379 "update" "-kk"
380 (concat "-j" first-revision)
381 (concat "-j" second-revision))
382 (vc-file-setprop file 'vc-state 'edited)
383 (with-current-buffer (get-buffer "*vc*")
384 (goto-char (point-min))
385 (if (re-search-forward "conflicts during merge" nil t)
386 1 ; signal error
387 0))) ; signal success
389 (defun vc-mcvs-merge-news (file)
390 "Merge in any new changes made to FILE."
391 (message "Merging changes into %s..." file)
392 ;; (vc-file-setprop file 'vc-working-revision nil)
393 (vc-file-setprop file 'vc-checkout-time 0)
394 (vc-mcvs-command nil 0 file "update")
395 ;; Analyze the merge result reported by Meta-CVS, and set
396 ;; file properties accordingly.
397 (with-current-buffer (get-buffer "*vc*")
398 (goto-char (point-min))
399 ;; get new working revision
400 (if (re-search-forward
401 "^Merging differences between [0-9.]* and \\([0-9.]*\\) into" nil t)
402 (vc-file-setprop file 'vc-working-revision (match-string 1))
403 (vc-file-setprop file 'vc-working-revision nil))
404 ;; get file status
405 (prog1
406 (if (eq (buffer-size) 0)
407 0 ;; there were no news; indicate success
408 (if (re-search-forward
409 (concat "^\\([CMUP] \\)?"
410 ".*"
411 "\\( already contains the differences between \\)?")
412 nil t)
413 (cond
414 ;; Merge successful, we are in sync with repository now
415 ((or (match-string 2)
416 (string= (match-string 1) "U ")
417 (string= (match-string 1) "P "))
418 (vc-file-setprop file 'vc-state 'up-to-date)
419 (vc-file-setprop file 'vc-checkout-time
420 (nth 5 (file-attributes file)))
421 0);; indicate success to the caller
422 ;; Merge successful, but our own changes are still in the file
423 ((string= (match-string 1) "M ")
424 (vc-file-setprop file 'vc-state 'edited)
425 0);; indicate success to the caller
426 ;; Conflicts detected!
428 (vc-file-setprop file 'vc-state 'edited)
429 1);; signal the error to the caller
431 (pop-to-buffer "*vc*")
432 (error "Couldn't analyze mcvs update result")))
433 (message "Merging changes into %s...done" file))))
435 (defun vc-mcvs-modify-change-comment (files rev comment)
436 "Modify the change comments for FILES on a specified REV.
437 Will fail unless you have administrative privileges on the repo."
438 (vc-mcvs-command nil 0 files "rcs" (concat "-m" comment ":" rev)))
442 ;;; History functions
445 (defun vc-mcvs-print-log (files &optional buffer)
446 "Get change log associated with FILES."
447 (let ((default-directory (vc-mcvs-root (car files))))
448 ;; Run the command from the root dir so that `mcvs filt' returns
449 ;; valid relative names.
450 (vc-mcvs-command
451 buffer
452 (if (vc-stay-local-p files) 'async 0)
453 files "log")))
455 (defun vc-mcvs-diff (files &optional oldvers newvers buffer)
456 "Get a difference report using Meta-CVS between two revisions of FILES."
457 (let* ((async (and (not vc-disable-async-diff)
458 (vc-stay-local-p files)))
459 ;; Run the command from the root dir so that `mcvs filt' returns
460 ;; valid relative names.
461 (default-directory (vc-mcvs-root (car files)))
462 (status
463 (apply 'vc-mcvs-command (or buffer "*vc-diff*")
464 (if async 'async 1)
465 files "diff"
466 (and oldvers (concat "-r" oldvers))
467 (and newvers (concat "-r" newvers))
468 (vc-switches 'MCVS 'diff))))
469 (if async 1 status))) ; async diff, pessimistic assumption.
471 (defun vc-mcvs-annotate-command (file buffer &optional revision)
472 "Execute \"mcvs annotate\" on FILE, inserting the contents in BUFFER.
473 Optional arg REVISION is a revision to annotate from."
474 (vc-mcvs-command
475 buffer
476 (if (vc-stay-local-p file) 'async 0)
477 file "annotate" (if revision (concat "-r" revision)))
478 (with-current-buffer buffer
479 (goto-char (point-min))
480 (re-search-forward "^[0-9]")
481 (delete-region (point-min) (1- (point)))))
483 (defalias 'vc-mcvs-annotate-current-time 'vc-cvs-annotate-current-time)
484 (defalias 'vc-mcvs-annotate-time 'vc-cvs-annotate-time)
487 ;;; Snapshot system
490 (defun vc-mcvs-create-snapshot (dir name branchp)
491 "Assign to DIR's current revision a given NAME.
492 If BRANCHP is non-nil, the name is created as a branch (and the current
493 workspace is immediately moved to that new branch)."
494 (if (not branchp)
495 (vc-mcvs-command nil 0 dir "tag" "-c" name)
496 (vc-mcvs-command nil 0 dir "branch" name)
497 (vc-mcvs-command nil 0 dir "switch" name)))
499 (defun vc-mcvs-retrieve-snapshot (dir name update)
500 "Retrieve a snapshot at and below DIR.
501 NAME is the name of the snapshot; if it is empty, do a `cvs update'.
502 If UPDATE is non-nil, then update (resynch) any affected buffers."
503 (with-current-buffer (get-buffer-create "*vc*")
504 (let ((default-directory dir)
505 (sticky-tag))
506 (erase-buffer)
507 (if (or (not name) (string= name ""))
508 (vc-mcvs-command t 0 nil "update")
509 (vc-mcvs-command t 0 nil "update" "-r" name)
510 (setq sticky-tag name))
511 (when update
512 (goto-char (point-min))
513 (while (not (eobp))
514 (if (looking-at "\\([CMUP]\\) \\(.*\\)")
515 (let* ((file (expand-file-name (match-string 2) dir))
516 (state (match-string 1))
517 (buffer (find-buffer-visiting file)))
518 (when buffer
519 (cond
520 ((or (string= state "U")
521 (string= state "P"))
522 (vc-file-setprop file 'vc-state 'up-to-date)
523 (vc-file-setprop file 'vc-working-revision nil)
524 (vc-file-setprop file 'vc-checkout-time
525 (nth 5 (file-attributes file))))
526 ((or (string= state "M")
527 (string= state "C"))
528 (vc-file-setprop file 'vc-state 'edited)
529 (vc-file-setprop file 'vc-working-revision nil)
530 (vc-file-setprop file 'vc-checkout-time 0)))
531 (vc-file-setprop file 'vc-mcvs-sticky-tag sticky-tag)
532 (vc-resynch-buffer file t t))))
533 (forward-line 1))))))
537 ;;; Miscellaneous
540 (defalias 'vc-mcvs-make-version-backups-p 'vc-stay-local-p
541 "Return non-nil if version backups should be made for FILE.")
542 (defalias 'vc-mcvs-check-headers 'vc-cvs-check-headers)
546 ;;; Internal functions
549 (defun vc-mcvs-command (buffer okstatus file &rest flags)
550 "A wrapper around `vc-do-command' for use in vc-mcvs.el.
551 The difference to vc-do-command is that this function always invokes `mcvs',
552 and that it passes `vc-mcvs-global-switches' to it before FLAGS."
553 (let ((args (append '("--error-terminate")
554 (if (stringp vc-mcvs-global-switches)
555 (cons vc-mcvs-global-switches flags)
556 (append vc-mcvs-global-switches flags)))))
557 (if (not (member (car flags) '("diff" "log" "status")))
558 ;; No need to filter: do it the easy way.
559 (apply 'vc-do-command buffer okstatus "mcvs" file args)
560 ;; We need to filter the output.
561 ;; The output of the filter uses filenames relative to the root,
562 ;; so we need to change the default-directory.
563 ;; (assert (equal default-directory (vc-mcvs-root file)))
564 (vc-do-command
565 buffer okstatus "sh" nil "-c"
566 (concat "mcvs "
567 (mapconcat
568 'shell-quote-argument
569 (append (remq nil args)
570 (if file (list (file-relative-name file))))
571 " ")
572 " | mcvs filt")))))
574 (defun vc-mcvs-repository-hostname (dirname)
575 (vc-cvs-repository-hostname (vc-mcvs-root dirname)))
577 (defun vc-mcvs-dir-state-heuristic (dir)
578 "Find the Meta-CVS state of all files in DIR, using only local information."
579 (with-temp-buffer
580 (vc-cvs-get-entries dir)
581 (goto-char (point-min))
582 (while (not (eobp))
583 ;; Meta-MCVS-removed files are not taken under VC control.
584 (when (looking-at "/\\([^/]*\\)/[^/-]")
585 (let ((file (expand-file-name (match-string 1) dir)))
586 (unless (vc-file-getprop file 'vc-state)
587 (vc-cvs-parse-entry file t))))
588 (forward-line 1))))
590 (defalias 'vc-mcvs-valid-symbolic-tag-name-p 'vc-cvs-valid-symbolic-tag-name-p)
591 (defalias 'vc-mcvs-valid-revision-number-p 'vc-cvs-valid-revision-number-p)
593 (provide 'vc-mcvs)
595 ;; arch-tag: a39c7c1c-5247-429d-88df-dd7187d2e704
596 ;;; vc-mcvs.el ends here