Reputation: 1823
I have a troubling issue with TFS merging between two branches of my project. Let me try to explain the problem.
To do that, I have to first merge X into Y to sync F2 code and then I will have to merge F1 in branch Y back into branch X
But every time I attempt do so, TFS rolls back the changes of commit C1 (Deletes new files added in C1 and undo code in edited files) without even giving me a chance to resolve the conflicts.
I even tried to merge X to Y and manually resolved all the conflicts which took me nearly 2-3 hours as there are many files involved. But this is happening again when I'm merging back Y to X. I've been going round and round on this issue for a while now.
Is there a way I can resolve this more easily? Thanks
Upvotes: 0
Views: 393
Reputation: 51073
This looks like you didn't use the /keepmergehistory
option when you are doing the roll back.
tf rollback /keepmergehistory
This option has an effect only if one or more of the changesets that you are rolling back include a branch or merge change. Specify this option if you want future merges between the same source and the same target to exclude the changes that you are rolling back.
You could take a look at the answer from Isaiah4110 with detail explanation in this question TFS merge doesn't pick up rollback changeset(s)
For now you could use cherry pick merge each of the changesets as a workaround like jessehouwing suggested.
Upvotes: 2