changeset 95322:54121bb9b5ad

(Problems): Remove fixed issues. (vc-expand-dirs): Avoid returning directories.
author Dan Nicolaescu <dann@ics.uci.edu>
date Mon, 26 May 2008 23:53:33 +0000
parents f362398714d9
children 3365a8da5213
files lisp/ChangeLog lisp/vc.el
diffstat 2 files changed, 5 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Mon May 26 23:50:21 2008 +0000
+++ b/lisp/ChangeLog	Mon May 26 23:53:33 2008 +0000
@@ -1,6 +1,7 @@
 2008-05-26  Dan Nicolaescu  <dann@ics.uci.edu>
 
 	* vc.el (Problems): Remove fixed issues.
+	(vc-expand-dirs): Avoid returning directories.
 
 	* vc-dispatcher.el (vc-resynch-window): Fix mode-line updating.
 	(vc-dir-menu-map): Fix menu title for the menu bar and the popup menu.
--- a/lisp/vc.el	Mon May 26 23:50:21 2008 +0000
+++ b/lisp/vc.el	Mon May 26 23:53:33 2008 +0000
@@ -656,8 +656,6 @@
 ;;
 ;; - the CVS vc-dir display is now incorrect from some states.
 ;;
-;; - vc-dir is now broken for RCS and SCCS.
-;;
 ;; - the *vc-dir* buffer is not updated correctly anymore after VC
 ;;   operations that change the file state.
 ;;
@@ -988,10 +986,10 @@
 Within directories, only files already under version control are noticed."
   (let ((flattened '()))
     (dolist (node file-or-dir-list)
-      (if (file-directory-p node)
-	  (vc-file-tree-walk
-	   node (lambda (f) (when (vc-backend f) (push f flattened)))))
-      (push node flattened))
+      (when (file-directory-p node)
+	(vc-file-tree-walk
+	 node (lambda (f) (when (vc-backend f) (push f flattened)))))
+      (unless (file-directory-p node) (push node flattened)))
     (nreverse flattened)))
 
 (defun vc-derived-from-dir-mode (&optional buffer)