SVN - 如何创建具有“单个存储库多项目布局"的 subversion 存储库? [英] SVN - How do i create a subversion repository with a "single repository multiple project layout"?

查看:28
本文介绍了SVN - 如何创建具有“单个存储库多项目布局"的 subversion 存储库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了 Subversion (Collabnet).该文档解释了如何创建我已经完成的存储库,但我无法弄清楚如何创建特定的布局.我想创建这个布局

I have just installed Subversion (Collabnet). The documentation explains how to create repositories which i have done but i cant figure out how to create a specific layout. I want to create this layout

c:\repositories
 +- MyProjectRepository
     +- project1
          +--- trunc
          +--- branches
          +--- tags
     +- project2
          +--- trunc
          +--- branches
          +--- tags
     +- project3
          +--- trunc
          +--- branches
          +--- tags

文档只允许我从生成此布局的模板创建新存储库:

The documentation only allows me to create a new repository from a template which produces this layout:

c:\repositories
 +- MyProjectRepository
     +-- project1
          +--- trunc
          +--- branches
          +--- tags

我怎样才能实现第一个布局?即单个存储库中的多个项目.

How can i achieve the first layout? i.e. multiple projects in a single repository.

这 3 个目录是否被视为特殊目录?例如,如果我手动创建目录结构,subversion 会识别这些目录吗?即,如果我在 project3 中创建标签,则标签链接将关联到 project3/tags.

Are the 3 directories considered as special directories? For example, if i create the directory structures manually, will subversion recognise these directories? i.e. if i create a tag while in project3, the tag link will be associated to project3/tags.

谢谢

推荐答案

Subversion 将接受您想要的任何目录结构.只需从存储库的顶层检出您创建的存储库,然后删除现有结构.然后您可以设置您喜欢的目录(在任何配置中),然后将您的新结构提交回存储库.

Subversion will accept any directory structure you want. Simply check out the repository you created from the top level of the repository, and then remove the existing structure. You can then set up the directories you like (in any configuration) and then just commit your new structure back to the repository.

注意:这仅适用于(空)存储库.已经有改动的仓库会有点乱,但思路还是一样的.

Note: This will only work cleanly for a new (empty) repository. A repository with changes already will be a bit messier, but the idea is still the same.

这篇关于SVN - 如何创建具有“单个存储库多项目布局"的 subversion 存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆