Description

The "Revert" command restores local elements to their current state and contents in the repository.

Conditions and restrictions

The "Revert" command can be run on the following conditions:

  • The element is an Atomic unit.

  • The element is currently read-write.

User interface

The "Revert" command opens the following window:

TW_007_revert.png
The "Revert modifications" window

This window includes an "Is recursive" option and a "Release locks" option. These options are checked by default. It also lists the elements that are about to be reverted depending on the chosen option values.

Behavior

The "Revert" command window options modify command behavior as described below.

  • Is recursive :
    The element AND all its sub-elements will be reverted by the command.
    Example: a package and all its classes.

  • Release locks :
    The command will also unlock the elements it is applied to, leaving them in the unlocked status (read-only).