[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-29 15:14:29 CET

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

> I've searched the archive, but still can't get svn to work properly for the
> windows path.

Which version of Subversion are you using?

> I've create a svn repository by:
>
> svnadmin create ath

This creates a repository "ath" which is a folder "ath" on the
physical disk. Is the path to that folder "e:/svn/ath"?

> And that seemed to have gone OK, there's a new svn folder with various
> folders inside.
>
> Then I did this:
>
> E:\>svn mkdir file:///e:/svn/ath -m 'Create new repos'

If the path to the repository/folder is "e:/svn/ath" the above command
is incorrect, you have to provide a name for the directory, so you
need to use something like "e:/svn/ath/foo".

I remember people have had problems using paths that contain drive
letters. I thought these problems had been fixed, but I don't use
Windows so I cannot be certain. There does appear to be code in
libsvn_ra_local/split_url.c to handle drive letters.

> And I got this message:
>
> Committed revision 1.
> svn: The system cannot find the path specified.
> svn: svn_io_file_open: can't open `.svn/lock'

Really? This message indicates that you are attempting to modify a
working copy. However the mkdir command with a file:// URL does not
affect a working copy, it makes a directory directly in the
repository.

> And it didn't make any new folders inside my repository folder. I've tried

Subversion stores files and directories in a Berkeley DB database,
which you will find in ath/db. So when you create a Subversion
directory "foo" you will not see a folder "foo" on the physical disk
inside the repository. If you check out a working copy you will get a
folder "foo" in your working copy.

To see whether a directory has been created in a repository try doing

E:\> svn ls file:///e:/svn/ath

> various other forms including but not limited to e:\\svn\\ath, e:\svn\ath,
> file://e:/svn/ath, all of them give similar error message, sometimes a
> folder will get created, but again it'll fail on import.

Import? You haven't mentioned import before.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Nov 29 15:15:20 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.