Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS: How to dectet changed files when loading a solution?

I am new to TFS integration with Visual Studio 2010, and I have a problem I would like to solve.

Practically, when I open a solution, how can I detect, looking only at the Solution Explorer which file has been changed since my last login?

I am able to discover the changed files if I look at the Latest column of Source Control Explorer but it is not so intuitive.

I attach you an image for better understanding.

alt text http://img37.imageshack.us/img37/9308/mainmicrosoftvisualstud.jpg

I would like to have a different icon, not the lock, for frmAbout.vb (in this case), associated to the item in Solution Explorer. Do you have any idea how can I achieve this behavior? Or some alternatives (plugins) for Visual Studio 2010?

EDIT: We are a small team of 3 people, and we need to be aligned on each line code changed because we are interchangeable. Therefore for us having a clear visible icon, would be helpful.

EDIT2: Bounty time finished again, without a real solution. If you know a plug-in that implements this behavior, please let me know. If I find some spare time I will try to write it.

like image 316
Drake Avatar asked Apr 15 '10 12:04

Drake


People also ask

How do you check changes in TFS?

In Source Control Explorer, select one or more items with pending changes or one or more folders that contain items with pending changes. The TFVC checked-out status icon indicates items with pending changes. Open the context menu for the selected items, and choose Check In.

How do I get rid of pending changes in TFS?

Right-click on the file in the Pending Changes List, choose Undo. Save this answer.

Where can you find all the files you have modified under Team Explorer?

In Source Control Explorer right click on a folder and on context menu "View History", will list all changeset's, select one and on Team Explorer show the informations about files changed.


1 Answers

First of all, just checking for cases where a file has been updated isn't sufficient. You also have to consider cases where files were added on the server, but you don't have those files yet... likewise in cases where a file is deleted on the server but hasn't been deleted from the local workspace.

Lucky for you, all this is built into Team Explorer in VS2010. All you have to do is:

  1. go to the Source Control Explorer
  2. right-click on the root folder of your solution (or any folder, really) on the tree pane on the left, and choose "Compare..."
  3. Choose your comparison options (the defaults will work fine for what you want to do) It will run a full comparison. When done, you will be presented with a "Folder Difference" window which shows all cases where the server and your workspace differ (these will be highlighted in red)
  4. Right-click on any item that's out of sync (or an entire folder) and choose "Reconcile..."; at this point you can choose how to resolve the differences.

And that's about it. Hope this helps.

like image 158
Warren Rumak Avatar answered Nov 15 '22 23:11

Warren Rumak