在AnkhSVN中创建分支将整个存储库添加到分支,而不是单个项目 [英] Creating branch in AnkhSVN adds entire repository to branch instead of single project
问题描述
我有一个包含所有Visual Studio项目的Subversion存储库。存储库的组织方式如下:
I have a single Subversion repository containing all my Visual Studio projects. The repository is organized as follows:
repository/
branches/
project1_branch/
...
tags/
project1_tag/
...
trunk/
project1/
project2/
...
当我右键单击特定的解决方案时,我已经在Visual Studio 2010中打开并选择 Subversion ->分支解决方案
默认的文件夹/ URL是 trunk
目录。
When I right-click on a particular solution I have open in Visual Studio 2010 and choose Subversion --> Branch Solution
the default From Folder/URL is the trunk
directory.
如何我创建的分支只是我正在研究的特定解决方案/项目吗?
How can I create a branch of just the specific solution/project I am working on?
在此先感谢您的帮助。
推荐答案
我想知道AnkhSVN是否假设存储库文件夹结构略有不同。如果我没记错的话,推荐结构建议主干文件夹代表给定项目的稳定/当前代码库,而不是一个聚集多个项目主干的文件夹。也就是说,我希望看到的结构更像是:
I wonder if AnkhSVN is assuming a slightly different repository folder structure. If I'm not mistaken, the "recommended" structure suggests that a trunk folder represent a given project's stable/current code base, rather than as a folder that aggregates multiple project's trunks. That is, I would expect to see a structure more like:
repository/
project1/
branches/
tags/
trunk/
project2/
branches/
tags/
trunk/
如果从这个角度来看,从主干分支出来的AnkhSVN行为更有意义-它只是将子目录视为植根于该结构的一部分主干,但不知道或期望这些是离散项目的主干。
If you look at it from that perspective, the AnkhSVN behavior of branching from trunk makes a bit more sense - it just sees the subdirectories as part of the structure rooted at "trunk," but doesn't know or expect those are discrete projects' trunks.
我谨建议从存储库根目录为测试项目构建一个顶级 project 文件夹,如上所示,然后通过AnkhSVN对其进行练习,看看从长远来看,对存储库结构进行前瞻性更改是否可能对您最好。
I would respectfully suggest building a top-level project folder from the repository root for a "test" project, organized as illustrated above, then exercise it through AnkhSVN, and see if perhaps a going-forward change to your repository structure might serve you best over the long term.
这篇关于在AnkhSVN中创建分支将整个存储库添加到分支,而不是单个项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!