Subject: Re: bug#5345: Password asked when visiting a file in a lightweight checkout

From: Eli Zaretskii <[email-masked]>
Date: Sat, 09 Jan 2010 15:52:33 +0200

> From: Juanma Barranquero <[email-masked]>
> Date: Sat, 9 Jan 2010 13:44:02 +0100
> Cc: [email-masked]
> 
>   file-exists-p("/C:/emacs/repo/trunk/.bzr/branch/format")  <<<<<<<<<<
>   vc-bzr-working-revision("c:/emacs/repo/test-lightweight/etc/NEWS")
>   apply(vc-bzr-working-revision "c:/emacs/repo/test-lightweight/etc/NEWS")
>   vc-call-backend(Bzr working-revision "c:/emacs/repo/test-lightweight/etc/NEWS")

Here's the bug: some code thinks that "C:/foo" is not an absolute file
name, probably because it checks for the leading slash.  So it
prepends a slash, which alters the semantics of the file to be a
remote file on a mythical machine called "C", with predictable
results.

I'd take a good look at vc-bzr-working-revision and the subroutines it
calls.