# Re: URL problem

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-06-06 04:08:17 CEST

Paul Marculescu <paul@p16.pub.ro> writes:

> Hello!
>
> This is a problem I first run into some time ago. Back then, Kevin told
> me:
> > Our URL parsing code _STILL_ doesn't recognize paths with a drive spec in
> > them.
>
> The problem is described below.
>
> I set up a local repository on my Windows 2000 in D:\svntest\repos.
> When I run svn co the URL is file:///svntest/repos. This is ok as long
> as I run the command from somewhere on drive D:
>
> But, when I run it from, let's say, E:\ I get:
>
> E:\>svn co file:///svntest/repos -d d:/svntest/wc
>
> svn_error: #21097 : <Couldn't find a repository.>
> Unable to open an ra_local session to URL
>
> svn_error: #21097 : <Couldn't find a repository.>
> svn_ra_local__split_URL: Unable to find valid repository
>
> which makes sense, but how can I specify the full path in the URL so
> that it doesn't depend on the run path of svn?

Browsing through APR I note the documentation about apr_filepath_root
in apr/file_io/win32/filepath.c. This suggests that one possible form
of a 'root' path is //./c:/foo. If this is correct it would suggest
that the following command should work

E:\> svn co file:////./d:/svntest/repos -d d:/svntest/wc

Yes, that's four slashes. Perhaps someone with a Windows machine could
try this and determine if it works? If it does we could document it,
since it doesn't appear to be common knowledge.

```--
Philip
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
```
Received on Thu Jun 6 04:11:58 2002

This is an archived mail posted to the Subversion Dev mailing list.