How to show pending changes only for the currently opened solution in Visual Studio 2010 (TFS) and not the complete list of all changes?
is there a way to force Visual Studio 2010 to show pending changes only for the currently opened solution? I am working on multiple branches of开发者_C百科 the same project and changing the same files in most of the branches. It's so painful to check the pending changes by hand every time and double-checking if I've selected the files that I am currently working on...
Open the pending changes window. You can find there a toolbar button that filters on the current solution.
Yes, on the pending changes view one of the last icons along the top is a "filter by solution" (next to the refresh icon). Click that to reduce the change list to the current solution.
You can see a screenshot of it here
I see the other answers are quite old.
In 2015 you can do it like this: click on the VisualSVN menu item and then on "Set Working Copy Root..." Then you can browse to the solution folder on disk.
If you bring up the pending changes window. One of the icons is for folder view. This should help with narrowing the changes to a specified directory. (though you will need to deselect the others)
OR
There is one option I just remembered for selecting those items. If you open your visual studio command prompt you can use the team foundation tools to auto filter by doing the following.
Example project structure
src
/Dev
/Branch1
/Branch2
You can cd into the src directory and use the following command to filter your pending checkins to Branch1
tf checkin Branch1 /recursive
Use Show Solution Changes, as seen here: (this applies for Visual Studio 2015)
精彩评论