vc-svn fix for bug#7663 on MS Windows. (tiny change)
authorVagn Johansen <gonz808@hotmail.com>
Thu, 3 Mar 2011 07:27:52 +0000 (23:27 -0800)
committerGlenn Morris <rgm@gnu.org>
Thu, 3 Mar 2011 07:27:52 +0000 (23:27 -0800)
* lisp/vc/vc-svn.el (vc-svn-after-dir-status): Some MS Windows svn client
programs output backslashes.

lisp/ChangeLog
lisp/vc/vc-svn.el

index 87d7cf0..969017b 100644 (file)
@@ -1,3 +1,8 @@
+2011-03-03  Vagn Johansen  <gonz808@hotmail.com>  (tiny change)
+
+       * vc/vc-svn.el (vc-svn-after-dir-status): Some MS Windows svn client
+       programs output backslashes.  (Bug#7663)
+
 2011-03-03  Glenn Morris  <rgm@gnu.org>
 
        * mail/sendmail.el (mail-mode-map): Remove mail-sent-via.
index 20c7689..7362258 100644 (file)
@@ -174,7 +174,9 @@ If you want to force an empty list of arguments, use t."
     (while (re-search-forward re nil t)
       (let ((state (cdr (assq (aref (match-string 1) 0) state-map)))
             (propstat (cdr (assq (aref (match-string 2) 0) state-map)))
-           (filename (match-string 4)))
+            (filename (if (memq system-type '(windows-nt ms-dos))
+                          (replace-regexp-in-string "\\\\" "/" (match-string 4))
+                        (match-string 4))))
         (and (memq propstat '(conflict edited))
              (not (eq state 'conflict)) ; conflict always wins
              (setq state propstat))