diff options
| author | Dan Nicolaescu | 2008-08-06 16:49:23 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-08-06 16:49:23 +0000 |
| commit | 245cacf13113f35e075fca56bf6180d24c086a41 (patch) | |
| tree | 60330dbf75d3f2fb0756c1f76e973f5ce3a1c0d8 | |
| parent | 5573794231d38f41924fe4d97164f176f8650a4b (diff) | |
| download | emacs-245cacf13113f35e075fca56bf6180d24c086a41.tar.gz emacs-245cacf13113f35e075fca56bf6180d24c086a41.zip | |
(vc-svn-parse-status): Use when instead of if.
Fix 2008-01-01 change: use a shy group to not affect subsequent
match calls.
| -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 50128348afc..6459bbfe6f7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2008-08-06 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * vc-svn.el (vc-svn-parse-status): Use when instead of if. | ||
| 4 | Fix 2008-01-01 change: use a shy group to not affect subsequent | ||
| 5 | match calls. | ||
| 6 | |||
| 1 | 2008-08-06 Reto Zimmermann <reto@gnu.org> | 7 | 2008-08-06 Reto Zimmermann <reto@gnu.org> |
| 2 | 8 | ||
| 3 | * progmodes/vera-mode.el (vera-electric-tab): | 9 | * progmodes/vera-mode.el (vera-electric-tab): |
diff --git a/lisp/vc-svn.el b/lisp/vc-svn.el index 30bf8d4ccf9..854e66e3d1d 100644 --- a/lisp/vc-svn.el +++ b/lisp/vc-svn.el | |||
| @@ -604,7 +604,7 @@ information about FILENAME and return its status." | |||
| 604 | (goto-char (point-min)) | 604 | (goto-char (point-min)) |
| 605 | (while (re-search-forward | 605 | (while (re-search-forward |
| 606 | ;; Ignore the files with status X. | 606 | ;; Ignore the files with status X. |
| 607 | "^\\(\\?\\|[ ACDGIMR!~][ MC][ L][ +][ S]..\\([ *]\\) +\\([-0-9]+\\) +\\([0-9?]+\\) +\\([^ ]+\\)\\) +" nil t) | 607 | "^\\(?:\\?\\|[ ACDGIMR!~][ MC][ L][ +][ S]..\\([ *]\\) +\\([-0-9]+\\) +\\([0-9?]+\\) +\\([^ ]+\\)\\) +" nil t) |
| 608 | ;; If the username contains spaces, the output format is ambiguous, | 608 | ;; If the username contains spaces, the output format is ambiguous, |
| 609 | ;; so don't trust the output's filename unless we have to. | 609 | ;; so don't trust the output's filename unless we have to. |
| 610 | (setq file (or filename | 610 | (setq file (or filename |
| @@ -643,7 +643,7 @@ information about FILENAME and return its status." | |||
| 643 | ((eq status ?R) | 643 | ((eq status ?R) |
| 644 | (vc-file-setprop file 'vc-state 'removed)) | 644 | (vc-file-setprop file 'vc-state 'removed)) |
| 645 | (t 'edited))))) | 645 | (t 'edited))))) |
| 646 | (if filename (vc-file-getprop filename 'vc-state)))) | 646 | (when filename (vc-file-getprop filename 'vc-state)))) |
| 647 | 647 | ||
| 648 | (defun vc-svn-valid-symbolic-tag-name-p (tag) | 648 | (defun vc-svn-valid-symbolic-tag-name-p (tag) |
| 649 | "Return non-nil if TAG is a valid symbolic tag name." | 649 | "Return non-nil if TAG is a valid symbolic tag name." |