Undo checkin operation

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
gsmalter
Posts: 115
Joined: Sat Jul 09, 2005 11:13 am

Undo checkin operation

Post by gsmalter » Tue Jun 01, 2010 12:48 pm

We just had a developer do a Commit All rather than a Shelve All. All of the checkins we'd like to undo were part of the same checkin transaction. No labels were applied and no shelves were made. Is there a way, using the Vault Client or the admin tool, to undo a checkin operation? We just want it to be as if he never checked it in as far as the server is concerned. This would be easy if it were one file, but there are hundreds.

As a bonus, is there a way to return his computer to the state where all of the files are checked out and he still has all of the changes he made?

Thank you.
Vault 5.0, Visual Studio 2010, Enhanced Client

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Undo checkin operation

Post by Beth » Tue Jun 01, 2010 4:29 pm

I think I can get you back to where you need to be, but it takes a few steps.

1) Have the user make a copy of his working folder as it is now that includes the changes that were accidentally checked in.
2) Use the instructions here, http://support.sourcegear.com/viewtopic ... 13&t=12594, to roll back to the last parent folder version that contains all his changes.
3) After the rollback, have the user check out what he needs to.
4) The user should now drop the copy of the files with his changes into his working folder and let them overwrite his checked out versions.

The oopss is still in history, but it shouldn't affect anything. If you want users to know this is an oops, you can change the check-in comment to say something about this being a mistaken check-in.
Beth Kieler
SourceGear Technical Support

Post Reply