Previous Topic: CheckoutNext Topic: Synchronize a Project


Undo Changes

You can undo CA Harvest SCM operations in the Visual Studio IDE, such as check-out, move, rename, and delete. A modified file also can be undone, so that it restores the file back to the version existing in CA Harvest SCM repository.

For a checked-out or reserved file, the Undo command (from the plug-in) corresponds to the Release Only mode of the check-in process in CA Harvest SCM. This operation lets you release the reserve tag version without checking in any new changes. The reserve tag is released and the attributes of the files on the client are changed to read-only.

For a renamed item in Online mode, the undo command from the plug-in corresponds to the deletion of R-tagged renamed item in the CA Harvest SCM repository. And the item is reverted to previous N-tagged version.

For local changes other than check-out, the Undo operation removes only local changes made to the file in workspace. Undo does not change the CA Harvest SCM repository.

To undo a checked-out file

  1. From the Solution Explorer, check out a file.

    The status of the file is updated to mark it as checked out or reserved.

  2. Right-click the checked-out file, and select CA Harvest SCM, Undo from the shortcut menu.

    CA Harvest SCM releases the reserve tag and a message appears in the output log. The red checkmark icon in the IDE is replaced with a cylinder icon (managed, checked in).

To undo an item, which is renamed in Online mode

  1. Right-click the parent item (project or solution file) and select CA Harvest SCM, Undo.

    The rename operation is undone.

    Note: A delete version process is required to perform undo. If the CA Harvest SCM administrator has not defined a delete item process and granted you access to run it, you cannot perform undo of rename.

To use Late Binding mode to undo the local changes (add, edit, rename, move, and remove) made to a file

  1. From the Solution Explorer, perform any of the following operations.
    1. Add a new file or project.
    2. Edit a managed file.
    3. Rename, move, or remove a file.

    The status of the file (or parent project or solution) is updated to mark it as edited in Late Binding mode.

  2. Right-click the edited file (project or solution) and select CA Harvest SCM, Undo from the shortcut menu.

    The local changes made to the file are removed and the file is reverted to the corresponding version in the CA Harvest SCM repository.

Note: The Undo operation is also available from the Pending Changes and Synchronizer views.