Perforce 2003.2 Command Reference | ||
<< Previous Chapter p4 monitor |
Table of Contents Index Perforce on the Web |
Next Chapter >> p4 opened |
In contrast, p4 obliterate deletes the file data itself, precluding any possibility of recovery.
Use p4 obliterate with caution. This is the only command in Perforce that actually removes file data.
p4 obliterate requires at least one file pattern as an argument. To actually perform the obliteration, the -y flag is required; without it, p4 obliterate merely reports what it would do without actually performing the obliteration.
If you specify a single revision (for instance, p4 obliterate file#3), only that revision of the file is obliterated. If you specify a revision range (for instance, p4 obliterate file#3,5), only the revisions in that range are obliterated.
The -z flag is used with branches; after branching a file from one area of the depot into another. When a branch is made, a "lazy copy" is performed - the file itself isn't copied; only a record of the branch is made. If you want to "obliterate" the lazy copy performed by the branch, thereby creating an extra copy of the file in the depot, use p4 obliterate -z on it. Note that this typically increases disk space usage.
-y filespec |
Perform the obliterate operation. Without this flag, p4 obliterate merely reports what it would do. |
-z filespec |
Undo "lazy copies" only; remove no files nor metadata. This option is most commonly used when working with branches in order to ensure that no other files in the database refer to the named files. |
See the Global Options section. |
... #4 change 1276 edit on 2001/04/18 by user@dev1 (binary) 'Fixed'
... #1 change 1231 add on 2001/04/12 by user@dev1 (binary) 'First try'
Perforce 2003.2 Command Reference | ||
<< Previous Chapter p4 monitor |
Table of Contents Index Perforce on the Web |
Next Chapter >> p4 opened |