开发者

TFS 2010 nested branches and common components

We develop a common component that we typically use in all projects. We want to include the source code in each project and be able to commit changes to the common component made while coding project back to the common component. So the TFS structure would be something like this:

$/Common Component/Main/ComponentA

$/Some开发者_开发技巧 Project/Main/ComponentA (branched from $/Common Component/Main/ComponentA
$/Some Project/Main/Some Stuff
$/Some Project/Dev (branched from $/Some Project/Main)
$/Some Project/Release/1.0 (branched from $/Some Project/Main)

Is it possible to have the Main folder as a branch while its subfolder ComponentA was branched in from another location ($/Common Component/Main)? Or is this a nested branch which cannot be done in TFS 2010?


You can have nested branches but TFS discourages them. To do it, create the top level branches but then convert them to folders. The branching structure still is there but you can now do nested branching. The trade-off is that you lose some of the features like "View hierarchy".

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜