Reputation: 313
I know it's possible to reparent a TFS branch - I wanted to know if it possible to reparent an individual file (or at least modify the parent of a file in a branch to a different file within the parent branch). I have a case where I have copied/renamed files in the child branch - now when I TFS merge the file is being merged to a different file
Upvotes: 0
Views: 163
Reputation: 313
Having look thru a number of posts and a bit of trial and error, the conclusion for me is for a child branch, TFS is much happier if every checkin is 'merged' (not just the most recent) - when I say merged, I really mean 'dealt with'.
So when a check-in is done, immediately merge across (via merge selected changesets).
For historic changesets that have not been merged (i.e. outstanding/historic check-ins in the child branch), I found the best way to deal with merging was to :-
Upvotes: 0
Reputation: 30422
No, we can not reparent the individual files.
You are trying to modify the file history, but the Version history is immutable in TFVC. You cannot modify version control history, that is the changes that comprise a changeset.
You can try to get back to the specific version which not been merged, then right click the file >> Branching and Merging >> Merge >> then select the correct target branch file to merge.
Upvotes: 2