TFS Pending Changes – Ignoring Files which are Identical to the Originals

Since posting about TFS a few weeks ago, I noticed I’ve received a lot of Google traffic in relation to a specific TFS annoyance I mentioned; the fact that when you view pending changes or check in files for a solution, it presents you with a slew of files that you’ve checked out at some stage, but haven’t actually modified. If you do a Compare on them, TFS will tell you “The files are identical”. Well since then, I’ve figured out how to purge these unwanted squatters.

You need to install TFS Power Tools and execute tfpt uu /noget /r * in the root of the branch. As a result, TFS will go through and undo checkouts for any unchanged files whilst leaving your modified files untouched. TFS is silly!

About Nathan Pitman

Undergrad software engineer at the University of Auckland
This entry was posted in Version Control and tagged , , , , , . Bookmark the permalink.

3 Responses to TFS Pending Changes – Ignoring Files which are Identical to the Originals

  1. Sajagi says:

    Thanks for the tip, Nathan. Most appreciated!

  2. Mari says:

    Thе laѕt time I stumbleԁ across a sіte this
    fаѕcinatіng іt cost me a girlfгienԁ
    i’m sure, I spent so much time on it.

  3. Esko Woudenberg says:

    I had a couple dozen pending changes that I was not ready to check in for our solution but ended up checking out the solution so I could add 2 projects with full source as a dependency instead of using just pre-built dlls. Then I was stuck with THOUSANDS of items in our solution flagged as being checked out to me EVEN IF NONE OF THEM WAS CHANGED. Can’t believe we were suckered into paying for another half-baked Microsloth product AGAIN… (TFS needs some SERIOUS HELP)
    In any event thanks for the above tip. Helped me avoid hours of useless busy work!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>