如何使用 Windows 中的本地路径访问 subversion 存储库?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1227870/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 06:38:09  来源:igfitidea点击:

How can I access a subversion repository using a local path in Windows?

windowssvncommand-line

提问by Chris

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

我安装了 CollabNet Subversion 服务器和客户端,运行它附带的 Apache。从服务器上的命令行,我可以使用类似的路径轻松访问存储库

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?

我只是得到“[路径] 不是工作副本。” 我有什么误解?

回答by R. Martinho Fernandes

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

常见的错误。您必须像这样使用 file:// 伪协议:

file:///C:/repositories/repository

SVN repository paths have to be URIs.

SVN 存储库路径必须是URI

回答by sunny256

Try:

尝试:

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

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

并查看您是否可以看到 repo 中的文件。

回答by Philip Rieck

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

您应该能够使用file:///c:\repositories\repository通过路径访问存储库。

回答by Philip Rieck

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

通常“不是工作副本”意味着那里没有 .svn“魔法子目录”。

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

您需要进行“结帐”以获取工作副本,而不仅仅是“导出”

回答by demoncodemonkey

try

尝试

file://c:/repositories/repository

file://c:/repositories/repository