diff options
| author | Stefan Monnier | 2002-03-22 23:10:01 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2002-03-22 23:10:01 +0000 |
| commit | 839daccae74b7dd5c96dacfc93018a8d6cea6e79 (patch) | |
| tree | 1d1167856e4b00ca129d123bc2fea223c5f5c11a | |
| parent | 814c447faf58842b1ad32c8e15a6529e58987b8c (diff) | |
| download | emacs-839daccae74b7dd5c96dacfc93018a8d6cea6e79.tar.gz emacs-839daccae74b7dd5c96dacfc93018a8d6cea6e79.zip | |
(vc-cvs-registered, vc-cvs-dir-state-heuristic):
Don't consider cvs-removed files as under VC control.
VC wouldn't handle them properly anyway and it confuses
vc-file-not-found-hook.
| -rw-r--r-- | lisp/vc-cvs.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/vc-cvs.el b/lisp/vc-cvs.el index fd50ce757d9..450a433a897 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.35 2002/03/05 13:30:50 spiegel Exp $ | 8 | ;; $Id: vc-cvs.el,v 1.36 2002/03/18 17:19:45 spiegel Exp $ |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | 11 | ||
| @@ -163,7 +163,8 @@ See also variable `vc-cvs-sticky-date-format-string'." | |||
| 163 | (goto-char (point-min)) | 163 | (goto-char (point-min)) |
| 164 | (cond | 164 | (cond |
| 165 | ((re-search-forward | 165 | ((re-search-forward |
| 166 | (concat "^/" (regexp-quote basename) "/") nil t) | 166 | ;; CVS-removed files are not taken under VC control. |
| 167 | (concat "^/" (regexp-quote basename) "/[^/-]") nil t) | ||
| 167 | (beginning-of-line) | 168 | (beginning-of-line) |
| 168 | (vc-cvs-parse-entry file) | 169 | (vc-cvs-parse-entry file) |
| 169 | t) | 170 | t) |
| @@ -778,7 +779,8 @@ essential information." | |||
| 778 | (vc-insert-file (expand-file-name "CVS/Entries" dir)) | 779 | (vc-insert-file (expand-file-name "CVS/Entries" dir)) |
| 779 | (goto-char (point-min)) | 780 | (goto-char (point-min)) |
| 780 | (while (not (eobp)) | 781 | (while (not (eobp)) |
| 781 | (when (looking-at "/\\([^/]*\\)/") | 782 | ;; CVS-removed files are not taken under VC control. |
| 783 | (when (looking-at "/\\([^/]*\\)/[^/-]") | ||
| 782 | (let ((file (expand-file-name (match-string 1) dir))) | 784 | (let ((file (expand-file-name (match-string 1) dir))) |
| 783 | (unless (vc-file-getprop file 'vc-state) | 785 | (unless (vc-file-getprop file 'vc-state) |
| 784 | (vc-cvs-parse-entry file t)))) | 786 | (vc-cvs-parse-entry file t)))) |
| @@ -871,7 +873,7 @@ is non-nil." | |||
| 871 | "\\(.\\|\\)" ;Sticky tag type (date or tag name, could be empty) | 873 | "\\(.\\|\\)" ;Sticky tag type (date or tag name, could be empty) |
| 872 | "\\(.*\\)")) ;Sticky tag | 874 | "\\(.*\\)")) ;Sticky tag |
| 873 | (vc-file-setprop file 'vc-workfile-version (match-string 1)) | 875 | (vc-file-setprop file 'vc-workfile-version (match-string 1)) |
| 874 | (vc-file-setprop file 'vc-cvs-sticky-tag | 876 | (vc-file-setprop file 'vc-cvs-sticky-tag |
| 875 | (vc-cvs-parse-sticky-tag (match-string 5) (match-string 6))) | 877 | (vc-cvs-parse-sticky-tag (match-string 5) (match-string 6))) |
| 876 | ;; compare checkout time and modification time | 878 | ;; compare checkout time and modification time |
| 877 | (let ((mtime (nth 5 (file-attributes file))) | 879 | (let ((mtime (nth 5 (file-attributes file))) |