[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Can't get path to work on Windows

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-11-30 02:28:32 CET

"Robo" <robo555@gmx.net> writes:

> The root of the repository is e:\svn\, from the svnadmin create command, and
> I want to create a new repository call ath inside that. So the root of the
> ath project will be e:\svn\ath
>
> But I can't create the directory, when I type
>
> svn mkdir file:///e:/svn/ath
>
> it just shows the error message mentioned,

So you claim the command

 svn mkdir file:///e:/svn/ath

gives the error

 Committed revision 1.
 svn: The system cannot find the path specified.
 svn: svn_io_file_open: can't open `.svn/lock'

I don't believe you. When you report a problem please give the
*exact* commands you run. In this instance I will guess that you used
a command something like

svn mkdir file:///e:/svn/ath -m 'message including the word Athletics'

and you are not using the correct form of argument quoting for
Windows. Then some of the commit message gets interpreted as the
names of working copy directories that are to be created, which causes
the error above because the current directory is not a working copy.

[Looks like we do have a bug in mkdir, it probably should not create
directories outside working copies.]

> and no folder call "ath" is created.

I've already told you: "svn mkdir URL" will not create a folder; it
creates a directory in the Subversion filesystem in the repository
database. A folder will only get created when you checkout or update
a working copy.

If you run the command "svn ls file:///e:/svn" what output do you get?
Given that you report the output "Committed revision 1." I expect
you will see something like

ath/

indicating that the directory has been created.

> To add to the confusion, sometimes when I type that command, it creates an
> empty folder call "Athletics" in e:\svn, I have no idea where it got the
> name Athletics from.

I suspect you didn't quote the commit message correctly. The correct
form depends on which shell you are using, I don't know what the rules
are for the Windows shell.

> I've just tried Philip's suggestion and used
>
> file:///e/svn/ath

I didn't suggest that. Drives use the form "e:" not "e/", and the
comments in libsvn_ra_local/split_url.c suggest "e|" can also be used.

> But I got the message:
>
> svn: Couldn't find a repository.
> svn: Unable to open an ra_local session to URL
> svn: svn_ra_local__split_URL: Unable to find valid repository
> (file:///e/svn/ath)

That's the correct error in this case.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Nov 30 02:29:12 2002

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.