Tell (vc-expand-dirs) not to throw out explicitly specified files.
authorEric S. Raymond <esr@snark.thyrsus.com>
Mon, 12 May 2008 18:49:07 +0000 (18:49 +0000)
committerEric S. Raymond <esr@snark.thyrsus.com>
Mon, 12 May 2008 18:49:07 +0000 (18:49 +0000)
lisp/ChangeLog
lisp/vc.el

index e74ab62..b7e0ba2 100644 (file)
@@ -1,3 +1,8 @@
+2008-05-12  Eric S. Raymond  <esr@snark.thyrsus.com>
+
+       * vc.el (vc-expand-dirs): Stop this function from tossing out 
+       explicitlt specified files.
+
 2008-05-12  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * smerge-mode.el (smerge-apply-resolution-patch): Don't pass nil
index 54a544b..2795912 100644 (file)
@@ -973,11 +973,13 @@ be registered."
 
 (defun vc-expand-dirs (file-or-dir-list)
   "Expands directories in a file list specification.
-Only files already under version control are noticed."
+Within directories, only files already under version control are noticed."
   (let ((flattened '()))
     (dolist (node file-or-dir-list)
-      (vc-file-tree-walk
-       node (lambda (f) (when (vc-backend f) (push f flattened)))))
+      (if (file-directory-p node)
+         (vc-file-tree-walk
+          node (lambda (f) (when (vc-backend f) (push f flattened)))))
+      (push node flattened))
     (nreverse flattened)))
 
 (defun vc-deduce-fileset (&optional observer)