开发者

Team Foundation Server - Branching

I was asked to make a branch in a project i'm working on.

I'm using Team Foundation Server and Visual Studio Pro 2008 with the Team Explorer.

In Source Control Explorer, i created a branch of a test project and checked in the files.

the problem is that in Solution Explorer, doi开发者_开发问答ng the Get Latest Version, i don't see the branch project.

I think i'm not doing this correctly, any help would be appreciated.

Best regards.


Update:

I completely misread the problem. As eFloh suggested in the comments, your problem is that you have not added the files to your solution. Branching only involves copying the files on the file system, it does not affect the solutions/projects themselves. Your new branch will have its own project file and you will need to add this project to the existing solution or open it in its own solution.

Original Answer:

There are a couple places you could be going wrong, but I suspect you might be mis-understanding how a branch is intended to work.

How to do it: If you have a project, say $/ProjectA, that want to branch to a location under $/Reasearch/, you would right-click ProjectA in Source Control and select "Branch". In the Target field of the branch dialog, Browse/enter $/Research/. This will then create a linked copy of ProjectA under Research. It sounds like you already managed this.

What it does: This copies the current version of ProjectA to the new location under Research. You can now make changes to your Research branch and check them in and these changes will not affect your original code-line.

Merging: If you make changes under your Research branch and want to bring these changes back to the original project, you must Merge them. To do this (after checking in all changes), right-click on your $/Research/ProjectA branch and select "Merge". Use this dialog to configure your merge and this will copy all differences back to your original branch.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜