views:

618

answers:

3

I have a specific changeset that I want to "rollback" my Development branch to, but I want to take all of the the changes after that specific changeset and put them in to a new branch. Is this possible in TFS? If so, how could I do such a thing?

Thanks, Dave

+2  A: 

Well.. The easiest way is to do exactly what you just said.

Branch the existing code into a new spot. Then get the changeset you want, checkout the project, and check the changeset back in.

Chris Lively
When I get that changeset though, it doesn't show that those files are changed... would I just need to manually check out everything then check it in again?
Dave
Yes, you do a check out and check the set in.
Chris Lively
Be sure that "Get Latest on Checkout" is unchecked in Options.
Patrick Szalapski
A: 

I ended up branching at the changeset I wanted, naming it Development-stable, then renamed Development to Development-experimental and then renamed Development-stable to Development.

Dave
This made me have to do weird stuff, now I can only merge via the command line.
Dave
+1  A: 

If you have the Team Foundation Power Tools installed, you can use the command tfpt rollback to create a changeset in your client that will take care of the rollback.

Damien Ryan