diff options
| author | Dan Nicolaescu | 2009-04-15 00:32:47 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2009-04-15 00:32:47 +0000 |
| commit | 524a655d93e4e535ccab96f6650a18f8d1816e03 (patch) | |
| tree | b051f4c38cd5bc68e53d0805091deb8fa3ce64b8 | |
| parent | d65859c36e21f1e9c44655c19f3d8e34acc3a5cb (diff) | |
| download | emacs-524a655d93e4e535ccab96f6650a18f8d1816e03.tar.gz emacs-524a655d93e4e535ccab96f6650a18f8d1816e03.zip | |
(vc-svn-after-dir-status): Fix regexp to allow for
file names with leading spaces. Ignore "." if it appears as a
filename.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/vc-svn.el | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e41ee9a19d7..3f0a3110cbb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * vc-svn.el (vc-svn-after-dir-status): Fix regexp to allow for | ||
| 4 | file names with leading spaces. Ignore "." if it appears as a | ||
| 5 | filename. | ||
| 6 | |||
| 1 | 2009-04-14 Juanma Barranquero <lekktu@gmail.com> | 7 | 2009-04-14 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 8 | ||
| 3 | * help-at-pt.el (help-at-pt-kbd-string): Reflow docstring. | 9 | * help-at-pt.el (help-at-pt-kbd-string): Reflow docstring. |
diff --git a/lisp/vc-svn.el b/lisp/vc-svn.el index a2e455a8702..6eeb8985bfd 100644 --- a/lisp/vc-svn.el +++ b/lisp/vc-svn.el | |||
| @@ -164,7 +164,7 @@ want to force an empty list of arguments, use t." | |||
| 164 | (?? . unregistered) | 164 | (?? . unregistered) |
| 165 | ;; This is what vc-svn-parse-status does. | 165 | ;; This is what vc-svn-parse-status does. |
| 166 | (?~ . edited))) | 166 | (?~ . edited))) |
| 167 | (re (if remote "^\\(.\\)..... \\([ *]\\) +\\(?:[-0-9]+\\)? +\\(.*\\)$" | 167 | (re (if remote "^\\(.\\)..... \\([ *]\\) +\\(?:[-0-9]+\\)? \\(.*\\)$" |
| 168 | ;; Subexp 2 is a dummy in this case, so the numbers match. | 168 | ;; Subexp 2 is a dummy in this case, so the numbers match. |
| 169 | "^\\(.\\)....\\(.\\) \\(.*\\)$")) | 169 | "^\\(.\\)....\\(.\\) \\(.*\\)$")) |
| 170 | result) | 170 | result) |
| @@ -176,7 +176,7 @@ want to force an empty list of arguments, use t." | |||
| 176 | ;; FIXME are there other possible combinations? | 176 | ;; FIXME are there other possible combinations? |
| 177 | (cond ((eq state 'edited) (setq state 'needs-merge)) | 177 | (cond ((eq state 'edited) (setq state 'needs-merge)) |
| 178 | ((not state) (setq state 'needs-update)))) | 178 | ((not state) (setq state 'needs-update)))) |
| 179 | (when state | 179 | (when (and state (not (string= "." filename))) |
| 180 | (setq result (cons (list filename state) result))))) | 180 | (setq result (cons (list filename state) result))))) |
| 181 | (funcall callback result))) | 181 | (funcall callback result))) |
| 182 | 182 | ||