diff options
author | Dan Nicolaescu <dann@ics.uci.edu> | 2008-05-10 03:58:11 +0000 |
---|---|---|
committer | Dan Nicolaescu <dann@ics.uci.edu> | 2008-05-10 03:58:11 +0000 |
commit | 4b1a01b30ec5742b3b3d47797fee36903a3e0ad8 (patch) | |
tree | 6ba5d7efd20049d6ffdec69ca652597541e75a10 /lisp/vc-sccs.el | |
parent | 0108dbd656861a5611cc2d786b70642a7c636898 (diff) | |
download | emacs-4b1a01b30ec5742b3b3d47797fee36903a3e0ad8.tar.gz |
* vc-sccs.el (vc-sccs-dir-status):
* vc-rcs.el (vc-rcs-dir-status): Avoid using results from multiple
backends and returning up to date files.
Diffstat (limited to 'lisp/vc-sccs.el')
-rw-r--r-- | lisp/vc-sccs.el | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/vc-sccs.el b/lisp/vc-sccs.el index d6e50defdd8..d4bc33fe9d3 100644 --- a/lisp/vc-sccs.el +++ b/lisp/vc-sccs.el @@ -152,14 +152,20 @@ For a description of possible values, see `vc-check-master-templates'." (vc-sccs-state file))) (defun vc-sccs-dir-status (dir update-function) - ;; Doing lots of individual VC-state calls is painful, but + ;; FIXME: this function should be rewritten, using `vc-expand-dirs' + ;; is not TRTD because it returns files from multiple backends. + ;; It should also return 'unregistered files. + + ;; Doing lots of individual VC-state calls is painful, but ;; there is no better option in SCCS-land. (let ((flist (vc-expand-dirs (list dir))) (result nil)) (dolist (file flist) (let ((state (vc-state file)) (frel (file-relative-name file))) - (push (list frel state) result))) + (when (and (eq (vc-backend file) 'SCCS) + (not (eq state 'up-to-date))) + (push (list frel state) result)))) (funcall update-function result))) (defun vc-sccs-working-revision (file) |