Google search bar

October 08, 2012

Team Foundation -- Oops, I shouldn't have checked that in!

Working in Visual Studio 2010 today, I was in the middle of creating a shelveset when I goofed and pressed Check In. Agh! Oh no!

I discovered that Team Foundation (tf) has a rollback command.  So I used 
>  tf rollback ...
 from the command line.

Then, I found the setting in Visual Studio to propmt on check-in.
Menu:
Tools > Options
Options dialog:
Source Control > Visual Studio Team Foundation Server > Prompt before check-in from Pending Changes window
I checked the option.  And now I get a confirmation before checking in.

The cool thing is that the change type in history shows 'edit, rollback'.  I also updated the initial changeset's comment to include a note about the rollback and the rollback changeset id.

No comments: