Visual Studio TFS shows unchanged files in the list of pending changes

前端 未结 6 713
故里飘歌
故里飘歌 2020-12-04 15:11

I see a file in pending changes window. I try to compare it with latest version and I get an a message \'The files are identical\' If the files are identical why is this fi

6条回答
  •  春和景丽
    2020-12-04 15:48

    Recently I just updated VS2010 to VS 2013, and this issue even worse. When you use compare, files that are identical don't pop up at all. I hate this because you could not figure out which files are truly changed until you check the compare files carefully.

    Finally I figure out a workaround for this:
    Add "Undo unchanged checkouts" in the external tools:

    • Command: tfpt.exe
    • Arguments: uu . /noget /recursive
    • Initial directory: $(SolutionDir)

    After running this command, TFS will automatically undo all the redundant changes in the files.
    But these files still keep check out status, actually they are already undo and same as the latest version. I think It is a bug in TFS. You just need click Refresh icon in the toolbar under solution explorer, these files will be refreshed and show the correct status!

提交回复
热议问题