How can I access a subversion repository using a l

2019-03-17 04:09发布

问题:

I have CollabNet Subversion server and client installed, running off of Apache that came with it. From the command line on the server, I can easily access the repository using a path like

http://server:port/svn/repository

but I can't access it using its actual location on the disk, like

c:\repositories\repository

I just get "[path] is not a working copy." What am I misunderstanding?

回答1:

Common mistake. You have to use the file:// pseudo-protocol like this:

file:///C:/repositories/repository

SVN repository paths have to be URIs.



回答2:

Try:

svn checkout "file:///C|/repositories/repository"

and see if you can see the files inside the repo.



回答3:

You should be able to use file:///c:\repositories\repository to access a repository via path.



回答4:

Usually "not a working copy" means that there's no .svn "magic subdirectory" there.

You need to do a "checkout" to get a working copy, and not just an "export"



回答5:

try

file://c:/repositories/repository