First, cd repo1
is superfluous: svnserve
doesn't care about the working directory in this instance.
To make your example work, change -d
to -d -r \repos
.
Alternatively, you could change your co
command to svn co svn://localhost/repos/repo1
.
When svn co
is run, it's using the URL to tell svnserve
where to look for the repo. This path by default is relative to /
, not the working directory where svnserve
was launched! The existing repository works because the repo happens to be in /
, not because svnserve
was launched from /repo
. When you want the path of your repo to be referenced from somewhere other than /
, use the -r [--root]
option of svnserve
.
This means that a repository stored at u:\repos\repo1
, when launched with svnserve -r u:\repos
must be referenced by the url /repo1
(svn://localhost/repo'
) rather than /repos/repo1
. Capish?