Reputation: 978
Is there a way to override a branch in TFS 2008 with the content of its parent? I've tried a merge (but no way to specify a complete refresh in the UI) but i am unsure because i would like to completely refresh the entire branch.
any thoughts on that?
Upvotes: 0
Views: 1693
Reputation: 14052
If you want to synchronise the branches so that the child branch is identical to the parent, I'd just take a new branch from the parent. This is the easiest way to make sure that they are completely the same. You can then delete \ archive the old child branch.
If you merge from the Parent to Child TFS will check all the files in the branch and the following rules apply
In the conflict resolution tab you can select all files and choose to keep the version from the parent. However any files modified only in the child will not be overwritten (see point 2)
You could also use the command line option
tf merge $/Project/Parent $/Project/Child /force /recursive
This will tell TFS to attempt to merge files that it already thinks have been merged to the file. I still don't think it will merge files that haven't changed since the child was created though.
Upvotes: 3