9

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?

Carlos Bittencourt
  • 352
  • 1
  • 3
  • 9

2 Answers2

5

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.

Lars Truijens
  • 42,837
  • 6
  • 126
  • 143
  • uh, this looks very interesting and seems to hint in the right direction. We are seeing "empty merges" on a daily basis. I will backup/update our TFS to see if it works out. – Simon Opelt Sep 29 '11 at 11:05
  • @Simon did this work you for you? I have not been able to get out TFS server down to apply these updates. – Carlos Bittencourt Aug 03 '12 at 22:08
2

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!).

Daniel Morritt
  • 1,787
  • 17
  • 25
  • 4
    This doesn't work on merges. You can however undo the pending changes, then select "No to all" when it asks you if you want to undo files that actually changed. – Swoogan Apr 12 '12 at 16:30
  • 1
    The "No to all" will be applyed only to modified files. Newly added files will not be merged. As stated here: http://stackoverflow.com/questions/15619885/files-listed-as-pending-changes-when-doing-merges-that-didnt-change – jpgrassi Sep 11 '15 at 11:54