带有 Windows 客户端的 Ubuntu Subversion

发布于 2024-09-09 23:37:46 字数 481 浏览 4 评论 0原文

我在 Ubuntu 服务器上安装了 subversion,并且可以在 Ubuntu 上的 Eclipse Helios 中使用 subclipse (1.6),并且工作正常。

但是,当我尝试在 Windows 上的 Eclipse Helios 中使用 Subclipse (1.6) 时,它不起作用并且出现错误。
在 Windows 中,当我使用 http://serverAddress/svn 时,我收到一条错误消息,指出文件夹不存在,并且控制台中出现错误消息:

Repository has been moved
svn: Repository moved permanently to 'http://serverAddress/svn/'; please relocate

当我使用 svn://serverAddress/ 时svn,我也遇到了一个问题。

有人有什么想法吗?

I installed subversion on my Ubuntu server and I can use subclipse (1.6) in Eclipse Helios on Ubuntu and it works fine.

However when I try and use Subclipse (1.6) in Eclipse Helios on Windows, it doesn't work and I get errors.
In Windows when I use http://serverAddress/svn, I get an error saying folder doesn't exist and an error in the console saying:

Repository has been moved
svn: Repository moved permanently to 'http://serverAddress/svn/'; please relocate

When I use svn://serverAddress/svn, I get an issue as well.

Does anyone have any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

红衣飘飘貌似仙 2024-09-16 23:37:46

这不是 Eclipse 问题,而是 SVN 问题。

如果您可以在 Web 浏览器中看到您的存储库,SVN 常见问题解答会提到 httpd。配置错误。但就您而言:

<块引用>

然后,我在 ~/webapps/svn 下创建了一个子目录“projectx”,其中包含子目录“trunk”、“branches< /code>" 等然后运行:



$ svn import projectx file:///home/<user>/webapps/svn/projectx -m "first import".

<块引用>

projectx/trunk 等在 Trac 上显示良好,而 https://svn..webfactional.com/projectx/ 在浏览器,具有适当的身份验证等。一切都很好。

但是,当尝试从主干检查项目时(使用 Tortoise SVN),我收到此错误:

Command: Checkout from https://svn.<user>.webfactional.com/projectx/trunk, revision HEAD, Fully recursive, Externals included  
Error: Repository moved permanently to   
Error: 'http://svn.<user>.webfactional.com/projectx/trunk/'; please relocate  

解决方案是:

您已在存储库下的文件系统上创建了目录,例如 ~/webapps/svn/projectx。这是错误的方法。

您应该使用 'svn mkdir' 创建目录。


如果这还不够,另请参阅SO问题< /a>,其中提到存储库地址通常是 http://servername/svn/repositoryname,而不是 http://servername/svn

This is not an Eclipse issue, but a SVN issue.

If you could see your repo in a web browser, the SVN FAQ mentions an httpd.conf error. But in your case:

I then created a subdirectory "projectx" under ~/webapps/svn with subdirectories "trunk", "branches" etc and then ran:

$ svn import projectx file:///home/<user>/webapps/svn/projectx -m "first import".

projectx/trunk etc showed up fine on Trac, and https://svn.<user>.webfactional.com/projectx/ showed up fine in the browser, with proper authentication etc. All well and good.

However, when attempting to check out the project from trunk (using Tortoise SVN), I got this error:

Command: Checkout from https://svn.<user>.webfactional.com/projectx/trunk, revision HEAD, Fully recursive, Externals included  
Error: Repository moved permanently to   
Error: 'http://svn.<user>.webfactional.com/projectx/trunk/'; please relocate  

With the solution being:

You've created directories on the filesystem below your repo, eg ~/webapps/svn/projectx. That's the wrong way.

You should instead use 'svn mkdir' to create the directories.


If this is not enough, see also this SO question, where it mentions that the repository address is usually http://servername/svn/repositoryname, not http://servername/svn.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文