在单个 SVN 服务器上创建多个 svn 存储库
我为项目 A 设置了 SVN 服务器,一切都很好。 我现在需要在同一服务器中为项目 B 设置另一个存储库。
请问有什么指导吗?
I got SVN Server setup for Project A which is all good.
I now need to setup another repository in the same server for Project B.
Any guidelines please?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
按照 Arpit 的建议创建子文件夹绝对不是您正在寻找的解决方案,因为这两个项目都将是单个 SVN 存储库的一部分,因此共享修订号。
一台服务器中绝对可以有多个存储库,但是根据您的设置,有很多方法可以做到这一点。
首先,您可能需要研究这些文档以理清您的概念。
http://svnbook.red-bean.com/en/1.7/svn -book.pdf
http://tortoisesvn.net/support.html
在 Windows 设置中,例如,VisualSVN,通过其管理工具VisualSVN Server Manager,允许您以简单的方式轻松创建和管理存储库。
了解作为一般概念的存储库与作为 SVN 中的技术术语的存储库之间的区别非常重要。引用的文档将在这方面为您提供帮助。
Creating a sub-folder as Arpit suggests is definitely not the solution you're looking for, since both projects would be part of a single SVN repository, hence, sharing revision numbers.
It is definitely possible to have several repositories in a single server, however there are many ways to do it depending on your setup.
First you might want to study these documents to get your concepts straight.
http://svnbook.red-bean.com/en/1.7/svn-book.pdf
http://tortoisesvn.net/support.html
In a Windows Setup, for example, VisualSVN, through its managing tool, VisualSVN Server Manager, allows you to easily create and manage repositories in a straightforward way.
It is important that you undrstand the difference between repository as a general concept, and repository as a technical term in SVN. The cited documentation will assit you in this.
如果您使用 Apache,则可以通过 SVNParentPath 配置轻松支持多个存储库。看
http://svnbook.red -bean.com/en/1.5/svn.serverconfig.httpd.html#svn.serverconfig.httpd.basic 了解详细信息。
If you are using Apache, you can support multiple repositories easily with SVNParentPath configuration. See
http://svnbook.red-bean.com/en/1.5/svn.serverconfig.httpd.html#svn.serverconfig.httpd.basic for details.
您已经安装了服务器并在其中设置了一个项目,我相信可以通过以下方式:
要在同一服务器中添加另一个存储库,只需转到根目录并创建另一个文件夹结构,如下所示:
简单!没有涉及其他配置,您可以开始将它们用作单独的存储库。这称为多存储库布局。
注意:修订号将与这两个项目共享,即修订号是针对完整树的,并且两个项目将有一个统一的修订号
You have installed a server and setup a project in it, I believe in the following manner:
To add another repository in the same server, just go to the root directory and create another folder structure like this:
Simple!. There is no other configuration invoved and you can start using them as seperate repositories. This is called a Multi-Repisotory Layout.
NOTE: The revision number will be shared with both of these, i.e., the revision number is for a complete tree and there will be a unified revision number for both the projects