Is there a way to compare two branches for differences/file versions in VS2010?

Coder picture Coder · Jun 9, 2011 · Viewed 33.9k times · Source

Does anyone know if there is a way to check if code from production hotfix branch is not newer than mainstream branch via diff tool of some sort? (hotfix1 vs thrunk)

\src
    \thrunk
    \releases
        \hotfix1

I'm using vs2010 with TFS, but the branches have a lot of files, and all I came up with was comparing one file at a time, by re-specifying the target path of one of them.

Answer

Edward Thomson picture Edward Thomson · Jun 9, 2011

You can do this from right within Visual Studio - if you open Team Explorer and go to Source Control, you can compare folders recursively (even ones you don't have in your workspace.) Simply navigate to one of the branches, right click and select Compare and enter the other branch as the target.