Is Branching Supposed to Keep Labels?

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
mshiker
Posts: 3
Joined: Thu Nov 03, 2005 10:21 am

Is Branching Supposed to Keep Labels?

Post by mshiker » Wed Apr 16, 2008 9:49 am

I just upgraded from 3.1.2 to 4.1. After the upgrade I branched one of my projects. I went in to the branch through the Vault Client to view labels and the branch does not contain the labels that are in the project that I branched from. I have not done any branching before so I'm not sure if there is an issue with my upgrade or if Vault does not attempt to carry over the labels. Can you please provide some insight as to whether or not Vault supports carrying over labels during the branch process.

Thanks.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Wed Apr 16, 2008 10:13 am

The labels aren't branched over. If they were, then when you performed a Get by Label, you'd might get duplicates of the files. The labels that were there belong to the original.

I you want, I can take a feature request to branch the labels over too. I'm not sure it's a good idea though or feasible.

mshiker
Posts: 3
Joined: Thu Nov 03, 2005 10:21 am

Post by mshiker » Wed Apr 16, 2008 10:56 am

Thanks for the quick reply. That makes some sense to me but here is my scenario that I was considering.

I have a Visual Studio 2003 project and want to convert it to Visual Studio 2005 (yes, I know it is 2008 and there is an entirely new version of Visual Studio out there :) ). I'm was trying to decide a good approach to take for the conversion.

Approach A: Label the source and branch the source (trunk) to a "Backup" branch which would be similar to a Release branch. Do the conversion against the trunk, fix, and checkin. In the future, if I need to work against the 2003 project, do a GET against the "backup" branch, make changes, check in, and deploy.

Approach B: Label the source and branch the source (trunk) to a "Conversion" branch. Do the conversion against the branch, fix, checkin. Merge the changes from the branch into the trunk, resolve conflicts, check in. In the future, if I need to work against the 2003 project, I could do a GET against the label in the trunk that I applied before I branched the conversion branch.

I understand that there are many factors that go into branch scenarios, but was looking for any insight you may have into this scenario at a broad level.

Thanks.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Wed Apr 16, 2008 4:54 pm

Does the VS 2003 version of the code ever need the most recent changes, or would any changes to it be a case of a maintenance fix only to it (and then possibly merge that fix to trunk)?

So far, your Approach A sounds the best.

Post Reply