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,914 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 23

Accepted Solution

by:
Mohamed Osama 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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 my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

635 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