Partial reintegration from a branch
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
3 posts
• Page 1 of 1
Partial reintegration from a branch
by 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.
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
by 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.
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
by 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
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
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 63 guests