Once in a while someone checks in some file they didn't want checked in.
You can roll back these changes/checkins by using the Team Foundation Server Power Toy.
Team Foundation Server Power Tool (tfpt.exe) is a command-line tool. To use these commands, start tfpt.exe at the Command Prompt. Some of the commands will display a graphical user interface when used. In addition, you can access the Annotate and Treediff commands from Source Control Explorer in Visual Studio or Team Explorer. Team Foundation Server Power Tool includes the following commands:
Unshelve CommandUse the unshelve command to unshelve and merge the changes in the workspace.
Rollback CommandUse the rollback command to roll back changes that have already been committed to Team Foundation Server.
Online CommandUse the online command to create pending edits on writable files that do not have pending edits.
GetCS CommandUse the GetCS (Get Changeset) command to get the changes in a particular changeset.
UU CommandUse the UU (Undo Unchanged) command to undo unchanged files, including adds, edits, and deletes.
Annotate CommandUse the annotate command to download all versions of the specified files and show information about when and who changed each line in the file.
Review CommandUse the review command to optimize the code review process to avoid checking in or shelving.
History CommandUse the history command to display the revision history for one or more files and folders. The /followbranches option returns the history of the file branch’s ancestors.
Workitem CommandUse the workitem command to create, update, or view work items.
Query CommandUse the query command to run a work item query and display the results. If you do not provide a specific query, all the active work items assigned to you are displayed.
TreeDiff CommandUse the treediff command to display a visual representation of the differences between files in two server folders, in a server folder and a local folder, or in two local folders.
Treeclean CommandUse the treeclean command to view and optionally delete files that are not under source control in the current directory and all subdirectories. This command is useful when you want to remove temporary files from your local workspace, such as files created by the compiler.
To use it for rollbacks, just add the install path to the tfpt.exe to your PATH environment variable. Then, browse to the root of the project directory that you want to perform a rollback in and run "tfpt rollback" from the command line.
It will give you a user interface where you can find search for a chance-set to rollback.
Once you do it, you may have to "check in" the changes you just made, but I have used this several times and it has worked great.
Remember Me
Powered by: newtelligence dasBlog 1.9.6264.0
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
E-mail
Theme design by Jelle Druyts