开发者

Mixing repositories in tortoise

Will tortoise let me mix repositories in the same and if so how? What I would like is to store cod开发者_StackOverflow社区e, configs and binaries in separate repositories.


You should look at externals, using the svn:externals property, this will allow you to have one repository, with external references to other repositories.

For instance, you can do this:

trunk/                         <-- repository A
   config/                     <-- repository B
   binaries/                   <-- repository C
   code/                       <-- repository A

You cannot, however, mix files from different repositories in one working copy, but you can use externals to check out sub-directories of your working copy from different repositories.

For more information about externals, check the svnbook: Externals Definitions.


Subversion allows almost all sort of mixed working copies. You can combine different revisions, different locations within the repository and even different repositories.

The feature you mention is accomplished with externals:

http://svnbook.red-bean.com/en/1.5/svn.advanced.externals.html

However, these mixed working copies that combine different sources can be difficult to deal with. When you make changes you have to remember this fact and do a different checkout for each source. And you cannot merge stuff between different repositories so you won't have a proper history.

Honestly, I see little reason to split one single project into three different repos.


If you mean whether one checkout can include stuff from multiple repositories, then no. You should use one repository with subfolders for code, configs and binaries.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜