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
1,891 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:
Admin3k earned 125 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Download and create a local project on local computer from Visual Source Safe 2005 3 273
powershell update, windows 7 3 140
git, understanding 2 139
git update.. 5 106
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…
Article by: gr8gonzo
Git can be a complicated version control system for beginners, but it definitely is one of the best ones out there. Since this article assumes that you're starting at square one, it will skip over things that Git -can- do and will focus on the typic…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

937 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now