P4Web Release 2001.1 User Guide
[Getting Started] [How To...] [Browser Tips] [Glossary] [Road Map]
Reverting Files
The revert command closes opened files by taking
them off your pending changelist
instead of submitting them.
It also affects your workspace as follows:
-
When you revert a file opened for edit or integrate,
your workspace copy of the file is replaced with a copy of the
file from the depot.
Changes you made to your workspace copy of the file will
be lost when you run revert!
-
When you revert a file opened for add, nothing happens to the file
in your workspace; it is simply removed from your pending
changelist.
-
When you revert a file opened for delete, the deleted file is restored
to your workspace from the depot.
-
When you revert a file opened for branch/add, your workspace copy of
the branched file is removed.
You can revert files by:
- Choosing Run->Revert... in the control panel of the
Path Browser or the File Browser. This takes you to a Revert Options
page, described in more detail below.
- Clicking the "Revert unchanged files" shortcut button in the Path
Browser. This immediately reverts any files opened for edit or integrate
in the current path as long as you have not yet modified or
resolved them.
"Revert unchanged files" shortcut button
- Clicking the "Revert unchanged files" shortcut button in the File Browser.
This immediately reverts the current file if it was opened for edit or
integrate as long as you have not yet modified or resolved it.
The Revert Options Page
Run->Revert... takes you to a Revert Options page.
Select the options you want and click the command button to
revert files.
You can chose from these options:
- Unchanged files only
-
This option causes revert to operate on
only the files you have not yet modified in your workspace.
(Note that files opened for add, delete, or branch/add, and
files that have been resolved, are considered "modified".)
-
Restricting files
-
If you came to the Revert Options page via the Path Browser,
you can select the files to revert.
Copyright 2001 Perforce Software.
All rights reserved.