You are here: Features > Source Control > More About Source Control > Rolling Back to an Earlier Version of a File

 

Rolling Back to an Earlier Version of a File

One of the benefits of Flare's integrated source control is that you can view the history and differences for a particular file. You can view code and content differences between two source control versions of the same file. This is useful if you need to roll back to an earlier version of a file.

example

Let's say that you have been working on a particular topic for a few days. Each day you check out the latest version of that topic file from source control, make your changes, and check the file back in to source control at the end of the day. At a certain point, you determine that you need to "roll back" to an earlier version of the file, using it to replace the latest version. Therefore, you use this feature to view the highlighted differences between the current version and an older version of the file. Once you have identified the older version that you want to use, you can perform a "get" of that version.

See About Source Control and Multi-Authoring, Viewing the History of Source Control Files, and Viewing Differences in Source Control Files.

How to roll back to an earlier version of a file

  1. Do one of the following, depending on the particular file that you want to work with.

    Specific content file:

    1. Make sure the Content Explorer is open. By default, the Content Explorer is located on the left side of the interface in an accordion structure with the Project Organizer, unless you have previously moved it and saved the new layout. You may have to click the Content Explorer bar to bring it into view.
    2. Select the relevant file.
    3. In the Standard toolbar, click the down arrow next to the Source Control button .

      Note: Alternatively, you can right-click on the file or folder and select Source Control from the context menu.

    Specific project file:

    1. Make sure the Project Organizer is open. By default, the Project Organizer is located on the left side of the interface in an accordion structure with the Content Explorer, unless you have previously moved it and saved the new layout. You may have to click the Project Organizer bar to bring it into view.
    2. Select the relevant file.
    3. In the Standard toolbar, click the down arrow next to the Source Control button .

      Note: Alternatively, you can right-click on the file or folder and select Source Control from the context menu.

    Main FLPRJ file:

    1. Select Project>Project Properties.

      The Project Properties dialog opens.

    2. Select the Source Control tab.
    3. In the Project File section, click the down arrow next to the Source Control button .
  2. Select View History.

    The History dialog opens.

  3. (Optional) View the differences between two versions of the file. This may help you decide which version of the file you want to retrieve. (Another way is to look at the dates for each version in the History dialog.)

    To view the differences, follow these steps:

    1. Select the first file version from the list.
    2. Hold the CTRL key and select the second file version from the list.
    3. Click Show Differences.

      A window pane opens displaying the first version selected on the right side and the second version selected on the left side. The differences between the versions are highlighted.

      Note: This split window pane opens only if you are using Microsoft Visual SourceSafe. If you are using Microsoft Team Foundation Server, the Show Differences Dialog, which is a simple text-based viewer, opens instead. However, if you install Team Explorer, a more robust window pane will open.

    4. When you are finished viewing the differences, close the window pane.
  4. In the History dialog, select the version of the file to which you want to roll back.
  5. Click Get Selected Version.

    That file is downloaded from source control and replaces the local copy of the file in your project.

  6. In the History dialog, click Close.

See Also

PDF Downloads:

Flare Quick Guide

Flare Getting Started Guide

Flare What's New Guide

Flare Key Features Guide

Flare Transition From FrameMaker Guide

Flare Styles Guide

Flare Printed Output Guide

Flare WebHelp Plus Guide

Flare Shortcuts