Perforce Software

P4Web "revert" Help Page

[Return to "How to Use P4Web"]

The Revert command allows you to update your client to reflect the mapping between your client view and the contents of the depot.

Revert undoes changes to files in your client workspace, overwriting these files with copies of the files in the depot. Typically, you'll use Revert to throw away unwanted changes to files you've opened, or to undo the accidental opening of files you no longer wish to edit.

Command:

Click on the Revert button to revert the selected files.

Options:

One option is provided:

Restrict changes to unchanged files:

If you select this option, Revert will not affect any files in your workspace to which you've made changes since opening them.

Note that the default behavior of Revert is to also overwrite any changes you've made.

Restrict changes to changelist:

If you select this option, Revert will limit itself to reverting files opened in the specified changelist. This option will only appear if you have files open in more than one pending changelist.

Files:

Specifies which files will be reverted. Choose between:

Files in //client-path:

  • ...and subdirectories:
    Files in the specified client path and all directories below will be reverted to their original state.

    This is equivalent to the command line:
    p4 revert //client-path/...

  • ...at this level only:
    Only files in the specified client path will be reverted to their original state. Any files in directories beneath the client path will be untouched.

    This is equivalent to the command line:
    p4 revert //client-path/*

Selected Files:

If files at the current directory level are eligible for the operation (e.g. unopened files for Open for Edit, already-opened files for Revert files), a list of such files will appear.

To include or exclude individual files from the operation, click on the checkboxes for each file, and activate the radio button for the Selected Files option.

[Return to "How to Use P4Web"]


Copyright 2000 Perforce Software
$Id: //depot/r99.2/p4-doc/manuals/p4web/help/revert.html#2 $