问题
From time to time, when I want to check in with Visual Studio (2012) my pending changes to Team Explorer, I get a strange abstract "Included Changes (x of y)" Where x is smaller than y. Even when I check in from the root directory of the solution and when I select "Show all" I can't see really all changes.
In the case below: When I set "Show Solution Changes" I see 96 of 452, when I select "Show all" I see 178 of 452. The missing files are part of the solution and common source files as the others.
P.S: Policy warning is irrelevant and conflicts are irrelevant to this behavior.
回答1:
Show All simply removes any filter you have applied using either Show Solution Changes or Custom Filter.
If you want to view all your changes, you need to use the Go to All Changes link, right next to your Show All Link. This will show you the complete list of all changes across the workspace.
It takes a little getting used to, but I actually quite like it this way. I believe the rationale behind doing it was to keep that space fairly small, so as not to push the Excluded Items list way to the bottom (Excluded Items will also behave in the same manner, I believe).
There is an extension for Visual Studio called Team Pilgrim that will give you a version of the old style pending changes window.
Another point of note is that this behaviour is no longer the case in VS2013 (1) (Thanks to StefanG for pointing this out)
来源:https://stackoverflow.com/questions/21282954/tfs-show-really-all-changes