It is currently 08 Sep 2025, 08:37
   
Text Size

Partial reintegration from a branch

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Partial reintegration from a branch

Postby Max mtg » 22 Mar 2013, 15:41

I've heard FControl is about to be changed - that holds a potential for conflicts during merge in branches that also have changed that class.
How can I send my changes from a branch into trunk if I want to publish only a small part of what was made in a branch?

For instance, I've collected all thread-related routines in a new FThreads class, so FControl was changed and CardStorageReader was changed and a few calls in other clases have a different class whose static method they use.

My intention is to send those changes back to branch without transferring the changes to input classes - the ones I am trying to teach some patience.

What's the best way to do that?

My current plan is to get a working copy of trunk, make there the changes that I've invented working on a branch and commit. So that a branch will merge these changes with a few or without conflicts.
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times

Re: Partial reintegration from a branch

Postby myk » 22 Mar 2013, 16:06

I'm trying to see if we can get uhlersoth commit privs to a branch so the changes won't have to happen in trunk. However, if you want to do a partial reintegration with the least amount of hassle, it's pretty much as you said:
assuming you have trunk in c:/forge/trunk/ and your branch is in c:/forge/branches/input_sync/, copy the files you want (not merge) from your branch to trunk. Run to test and check in to trunk. Then, either merge back to your branch and resolve the conflict (if any) or run:
svn merge -c <revnum> --record-only ^/trunk
in your branch to ignore that particular revision in future merges from trunk.
myk
 
Posts: 439
Joined: 17 Jan 2013, 02:39
Location: California
Has thanked: 38 times
Been thanked: 57 times

Re: Partial reintegration from a branch

Postby Max mtg » 22 Mar 2013, 18:54

Thanks!

looks like I'm done with that portion of code.
did it all through TortoiseSVN, so didn't even face SVN command line parameters
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 63 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 63 users online :: 0 registered, 0 hidden and 63 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 63 guests

Login Form