]> git.eshelyaron.com Git - emacs.git/commitdiff
(vc-svn-after-dir-status): Fix regexp to allow for
authorDan Nicolaescu <dann@ics.uci.edu>
Wed, 15 Apr 2009 00:32:47 +0000 (00:32 +0000)
committerDan Nicolaescu <dann@ics.uci.edu>
Wed, 15 Apr 2009 00:32:47 +0000 (00:32 +0000)
file names with leading spaces.  Ignore "." if it appears as a
filename.

lisp/ChangeLog
lisp/vc-svn.el

index e41ee9a19d74d0ab1ed51c497d510aa194f07a7c..3f0a3110cbb566ce5a16dd189c809705230f4890 100644 (file)
@@ -1,3 +1,9 @@
+2009-04-15  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * vc-svn.el (vc-svn-after-dir-status): Fix regexp to allow for
+       file names with leading spaces.  Ignore "." if it appears as a
+       filename.
+
 2009-04-14  Juanma Barranquero  <lekktu@gmail.com>
 
        * help-at-pt.el (help-at-pt-kbd-string): Reflow docstring.
index a2e455a8702a26b1119f482c502aa909bfaa5fce..6eeb8985bfd125c094ad34a82baa9d5b19a511fe 100644 (file)
@@ -164,7 +164,7 @@ want to force an empty list of arguments, use t."
                      (?? . unregistered)
                      ;; This is what vc-svn-parse-status does.
                      (?~ . edited)))
-       (re (if remote "^\\(.\\)..... \\([ *]\\) +\\(?:[-0-9]+\\)? +\\(.*\\)$"
+       (re (if remote "^\\(.\\)..... \\([ *]\\) +\\(?:[-0-9]+\\)?   \\(.*\\)$"
              ;; Subexp 2 is a dummy in this case, so the numbers match.
              "^\\(.\\)....\\(.\\) \\(.*\\)$"))
        result)
@@ -176,7 +176,7 @@ want to force an empty list of arguments, use t."
             ;; FIXME are there other possible combinations?
             (cond ((eq state 'edited) (setq state 'needs-merge))
                   ((not state) (setq state 'needs-update))))
-       (when state
+       (when (and state (not (string= "." filename)))
          (setq result (cons (list filename state) result)))))
     (funcall callback result)))