Rolling back a folder or label

A collection of information about Vault, including solutions to common problems.

Moderator: SourceGear

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

Rolling back a folder or label

Post by Beth » Mon Oct 05, 2009 4:33 pm

This article discusses a strategy to return existing files to an earlier version.

1) Check out the folder involved.
figure 1.JPG
figure 1.JPG (25.94 KiB) Viewed 20794 times
2) Identify the version of the folder you want or the label you want and Get it to a location other than your working folder..
  • a. Folder Version
    • i. For folder version, use Show History, but select the option to View folder history by version.
      figure 2.JPG
      figure 2.JPG (20.75 KiB) Viewed 20794 times
      ii. You can find the folder version you need through the detailed comments, or you can view the tree to see what is included in that folder version.
      figure 3.JPG
      figure 3.JPG (44.4 KiB) Viewed 20794 times
      iii. Select the folder version you want to “rollback” to and click Get Tree. Notice that there is a date and time stamp on each one as well, so if you need a set date, get the version that has the date you need. Make sure you choose some other location to get to than the working folder.
      figure 4.JPG
      figure 4.JPG (45.82 KiB) Viewed 20794 times
    b. Label Version
    • i. Perform a Show labels at the folder level.
      figure 5.JPG
      figure 5.JPG (32.19 KiB) Viewed 20794 times
      ii. Perform a Get.
      figure 6.JPG
      figure 6.JPG (34.37 KiB) Viewed 20794 times
      iii. Set the location to get to be some other location besides the working folder.
      figure 7.JPG
      figure 7.JPG (24.64 KiB) Viewed 20794 times
3) Once the Get is complete, you will copy the items in the new location to the working folder and allow them to overwrite it.
figure 8.JPG
figure 8.JPG (51.69 KiB) Viewed 20794 times
4) Make sure you allow it to overwrite.
figure 9.JPG
figure 9.JPG (38.47 KiB) Viewed 20794 times
5) Return to Fortress and check in your changes.
figure 10.JPG
figure 10.JPG (31.17 KiB) Viewed 20794 times
6) The previous folder or label version is now checked in as the latest version.
figure 11.JPG
figure 11.JPG (25.77 KiB) Viewed 20794 times
7) The latest version is now the equivalent as that previous point in time. The history is still intact in case you decide you need the files that were overwritten.
Beth Kieler
SourceGear Technical Support

Post Reply