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.
Note that the default behavior of Revert is to
also overwrite any changes you've made.
This is equivalent to the command line:
This is equivalent to the command line:
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.
Command:
Options:
Restrict changes to unchanged files:
Restrict changes to changelist:
Files:
Files in //client-path:
Files in the specified client path and all directories below
will be reverted to their original state.
p4 revert //client-path/...
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.
p4 revert //client-path/*
Selected Files:
[Return to "How to Use P4Web"]