Merge Branches - Overwrite Target

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

Moderator: SourceGear

Post Reply
Tyrsius
Posts: 11
Joined: Mon Jun 14, 2010 10:20 am

Merge Branches - Overwrite Target

Post by Tyrsius » Mon Jun 14, 2010 10:26 am

I searched the forums before posting, but all I found was a post from 2004, and I am hoping a better solution has been found since then (there solution was not a real solution).

We do development in primarily two branches: Release and Beta. It sometimes happens that the Release version did not receive any changes during Beta, and the Merge that needs to happen is really just the Beta Branch overwriting the Release Branch.

When doing a merge, even if I do not select automatic merge, the files will not just overwrite. If I select "resolve merge" after the wizard, it seems to perform an automatic merge anyway (Funny aside, diffmerge thinks the proper way to merge version numbers is to average them, wtf?!).

Is there a simple way to overwrite one branch with another?

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Merge Branches - Overwrite Target

Post by lbauer » Mon Jun 14, 2010 11:06 am

We don't have a specific solution for this as yet. Merge branches will only merge changes from one branch into the other, and tries to preserve any changes made in the target, merging rather then overwriting them.

We do have each a request 10346 logged for this functionality, I've added your "vote" and bumped it up in priority, though I don't know when it might be implemented.

If there were no changes made in the trunk, you could show merge on the changed files and select the working folder version. Is that not working for you?
Linda Bauer
SourceGear
Technical Support Manager

Tyrsius
Posts: 11
Joined: Mon Jun 14, 2010 10:20 am

Re: Merge Branches - Overwrite Target

Post by Tyrsius » Mon Jun 14, 2010 2:47 pm

Showing merge works, but is tedious when merging multiple files, especially in instances where Vault decides that a resource file needs to be merged (such as a C# resx file), as the binary is not human-readable (which makes merging such files rather silly). It would be easier if overwrite were just an option in the merge branches wizard.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Merge Branches - Overwrite Target

Post by lbauer » Tue Jun 15, 2010 10:59 am

Thanks for your comments. I've noted them in the feature request.
Linda Bauer
SourceGear
Technical Support Manager

Solburn
Posts: 1
Joined: Fri May 27, 2011 10:01 am

Re: Merge Branches - Overwrite Target

Post by Solburn » Fri May 27, 2011 10:04 am

Has this feature been added?

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Merge Branches - Overwrite Target

Post by lbauer » Tue May 31, 2011 9:12 am

It has not been added yet. We still have it in our item tracking database to consider for a future release.
Linda Bauer
SourceGear
Technical Support Manager

kobussej
Posts: 1
Joined: Wed Mar 29, 2017 11:10 am

Re: Merge Branches - Overwrite Target

Post by kobussej » Wed Mar 29, 2017 1:08 pm

Has this feature been added?

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

Re: Merge Branches - Overwrite Target

Post by Beth » Thu Mar 30, 2017 8:39 am

This feature hasn't made it into a release.

There's a better way to deal with this than using the Merge Branches. What merge branches does it take the change sets that were applied to one folder, analyses them to make them into one change set, and applies them to the target. Wanting to make one folder look like another folder isn't really merging. What might work better for this case is to
  • -- Check out the target location

    -- Perform a Get with overwrite from the original, but during the get you can change the location to which it should get. This won't change the working folder.

    -- Check in the target location.
Beth Kieler
SourceGear Technical Support

Post Reply