branching and merging - Splitting out multiple intermediate changes in Mercurial -


we have unfortunate situation new feature branch made second, unrelated feature branch had been put on hold rather default. there's multiple changesets within both feature branches , while changed files unrelated several high level project files have edits on both branches. default has had several updates , merges during time too. thankfully intermediate feature hasn't been updated concurrently new feature. i've looked various commands , options available , lost how best fix situation. tree looks like:

default -- various edits , merges -- tip    \     \-- named branch 1 (15 changes) -- named branch 2 (30 edits) 

i want point default has changes named branch 2 none named branch 1. want branch has changes named branch 1 available when return feature.

i suspect there's no nice easy way this, , there's going messy parts in history, @ loss @ how start going task.

hg graft can cherry-pick changesets 1 branch another. update destination branch, graft revisions want copy running, example:

hg graft 8 9 10 

conflicts handled using normal merge process.

if use tortoisehg, select changesets graft current selected changeset, right-click , select graft selected local...:

enter image description here

result:

enter image description here


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -