tfs - Reparenting a child branch to its grand-parent -


i have following branch structure:

- main    |- release 1       |- release 1.1    |- release 2 

i want reparent release 1.1 main looks like

- main    |- release 1    |- release 1.1    |- release 2 

the reason want because many changesets need merged main release 1.1 not release 1

i have been trying baseless merge main release 1.1 using following command:

tf merge /recursive /baseless $/main $/releases/release1.1 

it works great, once checked in, can reparent release 1.1 main.

but thing is, command merges main , want create merge relationship. don't want merge main release 1.1 since many other changes other branches have occurred meanwhile.

is there way achieve or future changesets need baseless merged every single time?

to merely create relationship [and not merge everything] need perform baseless selective merge parent potential child branch passing selected changeset numbers. may achieved via gui following below steps mentioned in blogpost: http://roadtoalm.com/2012/09/19/reparent-of-a-source-controlled-branch-why-and-how/

though blog talks reparenting wherein merge changes potential parent branch child branch… there times when do not need changes new parent branch. then? idea go ahead , select changes , merge them child branch , undo pending changes changes not required. once unwanted changes un-done, go ahead , check-in. per blog need set reparent option new parent. know not clean approach works!


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -