Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS Merging keeps merging some files without any changes

Tags:

merge

tfs

For some unknown reason, TFS seems to keep queuing certain files for merges, even though there are no changes. In the Pending Changes windows, the Change column only states Merge, and not the usual Merge, edit or Merge, branch.

Nobody touches these files and yet they keep reappearing under the pending changes merge queue.

I've seen this happen before with a folder that was deleted, but kept reappearing in the merges between branches. In that case, I used tf destroy in all branches for that folder's path and it solved the problem. However, in this environment, it's with files that the team wants to keep.

Has anyone else experienced and/or resolved this issue?

like image 564
Carlos Bittencourt Avatar asked Sep 23 '11 16:09

Carlos Bittencourt


People also ask

What is baseless merging?

A "baseless merge", that is a three-way merge of two files without a common ancestor (or "base"), means that you can't identify what regions of a file are new and what are common.


2 Answers

Try TFS 2010 SP1 and CU1. It fixed some merge bugs. Like the following:

Merge or discard in both directions cause unnecessary "empty" merges in future merge attempts.

like image 185
Lars Truijens Avatar answered Sep 22 '22 19:09

Lars Truijens


If you have the Team Foundation Power Tools installed you can use tfpt uu to undo changes to any unchanged files (yes, it's well annoying when files are flagged as changed and you get told they are identical!).

like image 38
Daniel Morritt Avatar answered Sep 26 '22 19:09

Daniel Morritt