]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bug#5345: password asked when visiting files on a lightweight checkout.
authorJuanma Barranquero <lekktu@gmail.com>
Sat, 9 Jan 2010 21:03:33 +0000 (22:03 +0100)
committerJuanma Barranquero <lekktu@gmail.com>
Sat, 9 Jan 2010 21:03:33 +0000 (22:03 +0100)
* vc-bzr.el (vc-bzr-working-revision): On Windows and MS-DOS, accept
  URLs with a leading triple slash in the file: scheme.

lisp/ChangeLog
lisp/vc-bzr.el

index 22f561f8ef8279a57acfcebbd6229b3c0bf03ebb..3c53662600a6bd34f86467ddeef42c4101d5e91f 100644 (file)
@@ -1,3 +1,8 @@
+2010-01-09  Juanma Barranquero  <lekktu@gmail.com>
+
+       * vc-bzr.el (vc-bzr-working-revision): On Windows and MS-DOS, accept
+       URLs with a leading triple slash in the file: scheme.  (Bug#5345)
+
 2010-01-09  Chong Yidong  <cyd@stupidchicken.com>
 
        * progmodes/compile.el: Don't treat compile-command as safe if
index f140671be1227f2d6fadd677b548803284e323c9..a16e0889b74fd4dd171411d2ef1213da32b24b99 100644 (file)
@@ -361,6 +361,11 @@ If any error occurred in running `bzr status', then return nil."
                     ;; look there for the version information.
                     (when (re-search-forward "file://\\(.+\\)" nil t)
                       (let ((l-c-parent-dir (match-string 1)))
+                        (when (and (memq system-type '(ms-dos windows-nt))
+                                   (string-match-p "^/[[:alpha:]]:" l-c-parent-dir))
+                          ;;; On Windows, file:// URLs often have three slashes,
+                          ;;; so we must remove the remaining one (bug#5345)
+                          (setq l-c-parent-dir (substring l-c-parent-dir 1)))
                         (setq branch-format-file
                               (expand-file-name vc-bzr-admin-branch-format-file
                                                 l-c-parent-dir))