0

我不知道如何在 Svn 中进行存储库 url 重定向...

这是一个场景:

对于 SVN 服务器,我们使用 Visual SVN,对于客户端主要是 Tortoise SVN。

每次进行生产源翻转时,我们都会创建一个分支。然后网址如下所示:

http://svnserver.blabla.com/branches/8_3_0_0/development ...下次将是 http://svnserver.blabla.com/branches/8_4_0_0/development等。

现在我想要一个这样的 URL:http://svnserver.blabla.com/production/ ...指向 http://svnserver.blabla.com/branches/8_3_0_0/

因此,任何时候您想要结帐或转至生产源,我们都将使用一个 URL。

这可以做到吗?怎么做?

谢谢。

4

3 回答 3

3

Create a branch called /production, and merge or copy each production release’s changes to it. This will accomplish your goal of always having the production code accessible at the same URL, and SVN’s merge/copy tracking will record which branch generated which revision of /production.

于 2009-12-29T14:02:56.350 回答
1

如果您使用 apache 作为 svn 服务器的前端,您可以尝试重定向 apache 配置 (httpd.conf) 中的 url。IE:

重写规则http://svnserver.blabla.com/branches/prod”“http://svnserver.blabla.com/branches/release_74”[P ]

一些有用的链接: https ://serverfault.com/questions/79938/how-can-i-configure-apache-to-redirect-a-subdirectory-to-a-subversion-repo http://silmor.de/49

希望对你有帮助

于 2009-12-28T20:17:17.060 回答
0

我从来没有使用过 VisualSVN,但假设它具有 Subversion 的所有功能,最简单的方法是将生产设置为分支的 svn:external。然后每次翻车时都需要编辑此属性以指向正确的分支。

于 2009-12-28T19:29:58.950 回答