Use get and checkin to replace an existing version?

This forum is now locked, since Gold Support is no longer offered.

Moderator: SourceGear

Locked
binary
Posts: 2
Joined: Mon Aug 23, 2004 2:28 pm

Use get and checkin to replace an existing version?

Post by binary » Tue Nov 22, 2005 11:30 am

Is there a way without using labels to get an old version of a file from the repository and put it back in overwriting the latest version? I'm having trouble doing that, and I think I'm just missing something simple.

Thanks,
andy

GregM
Posts: 485
Joined: Sat Mar 13, 2004 9:00 am

Post by GregM » Tue Nov 22, 2005 12:12 pm

Is this just for a single file? If so, then from the history of the file, right click on the desired version, and select "Rollback". If you don't have automatic commit turned on, you will then have to commit that from your pending change set.

binary
Posts: 2
Joined: Mon Aug 23, 2004 2:28 pm

Post by binary » Tue Nov 22, 2005 5:59 pm

What if I'd like to do that for an entire folder? It seems that in Source Safe to do this I would get the desired version from history, check out the files without overwriting my local working folder, and then check-in my local working folder. When I tried to do the same procedure in Vault, I get the old version checked back in, but it does not replace the latest version.

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Wed Nov 23, 2005 8:33 am

Rollback currently only works on a file.

You should be able to do this though:

1. Check out the folder
2. Show history by version instead of by item on the folder
3. Selecting the version you want to rollback to
4. Press the Get Tree button, and have it overwrite the working version
5. Check the folder back in

Locked