diff lisp/vc-svn.el @ 81617:0a2fb180b0a5

(vc-svn-repository-hostname): Adjust to non-XML format of newer .svn/entries.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 26 Jun 2007 16:39:58 +0000
parents 114ec88248f4
children 1b5dfd1b9ca0 988f1edc9674
line wrap: on
line diff
--- a/lisp/vc-svn.el	Tue Jun 26 03:28:17 2007 +0000
+++ b/lisp/vc-svn.el	Tue Jun 26 16:39:58 2007 +0000
@@ -492,7 +492,9 @@
 	   ;; Old `svn' used name="svn:this_dir", newer use just name="".
 	   (concat "name=\"\\(?:svn:this_dir\\)?\"[\n\t ]*"
 		   "\\(?:[-a-z]+=\"[^\"]*\"[\n\t ]*\\)*?"
-		   "url=\"\\([^\"]+\\)\"") nil t)
+		   "url=\"\\(?1:[^\"]+\\)\""
+                   ;; Yet newer ones don't use XML any more.
+                   "\\|^\ndir\n[0-9]+\n\\(?1:.*\\)") nil t)
       ;; This is not a hostname but a URL.  This may actually be considered
       ;; as a feature since it allows vc-svn-stay-local to specify different
       ;; behavior for different modules on the same server.