Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

In TFS Source Control, is there a way to "undo" checkins to roll-back/recover the server source to a specific changeset?

Posted on 2009-05-16
3
Medium Priority
?
1,932 Views
Last Modified: 2013-11-25
One of our developers managed to pooch the directory structure on one of our TFS Source Control projects such that the files are invisible/inaccessible in Source Control Explorer.

Is it possible to "undo" checkins, or recover/restore the servers' version as at a specific changeset? ...without affecting other projects on the same server?
0
Comment
Question by:andrewclarkis
  • 2
3 Comments
 
LVL 23

Accepted Solution

by:
Mohamed Osama earned 500 total points
ID: 24415183
Basically TFS does not provide a native method to do this , when we wanted to rollback o a previous version we used to Checkout the item we need to rollback , then GET the specefic version we wish to restore to in a different workspace, copy its contents to the first workspace and checkin, this should work formodified  files / projects but not for folder structure like in your case
however with the release of Team foundation power tools , you can rollback a changeset using the command tfpt rollback /changeset:X
where X is your changeset number, you have to have Team foundation power tools installed
- open visual studio command prompt 
- CD to your orkspace folder
- type the command as above tfpt rollback /changeset:X

Notes:
-you must not have any pending changes for this to work
-The tfpt rollback command will enforce a get latest before rolling back 

Please post back should you have any further question or run into any difficulties.


0
 

Author Comment

by:andrewclarkis
ID: 24417406
Thanks!!! We were unaware of that tfpt command. That sounds perfect! Unfortunately we may not be able to attempt this until tomorrow; stay tuned.
0
 

Author Closing Comment

by:andrewclarkis
ID: 31582302
Perfect, thanks!! I forgot we even had Power Tools. That's exactly what we were looking for.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INTRODUCTION Subversion is a fantastic version management and software configuration management tool for teams and individuals to manage software applications. It offers many advantages over it's CVS ancestor such as it's built-in compatibility w…
When working in a large software development team, whether you have many developers working on the same projects, or your project is linked to other projects; it is very important that developers regularly perform "get latest" to ensure that the cha…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month13 days, 2 hours left to enroll

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question