Previous Table of Contents Index Next
Perforce 2009.2: Command Reference



p4 reopen
Synopsis
Move opened files between changelists or change the files' type.
Syntax
p4 [g-opts] reopen [-c changelist#] [-t filetype] file...
Description
p4 reopen has two different but related uses:
Use p4 reopen -c changelist# file to move an open file from its current pending changelist to pending changelist changelist#.
Use p4 reopen -c default to move a file to the default changelist.
Use p4 reopen -t filetype to change the type of a file.
If file patterns are provided, all open files matching the patterns are moved or retyped. The two flags can be combined to move a file and change its type in the same operation.
Options
-c changelist# file
Move all open files matching file pattern file to pending changelist changelist#. To move a file to the default changelist, use default as the changelist number.
When submitted, store file as type filetype. All subsequent revisions will be of that file type until the type is changed again.
See the File Types section for a list of file types.
Usage Notes
Can File Arguments Use
Revision Specifier?
Examples
p4 reopen -c 410
//depot/proj1/... //.../README
Move all open files under directory //depot/proj1 or that are named README to pending changelist 410.
Move all open .exe files to the default changelist, overwriting older revisions of those files in the depot.
Related Commands
p4 opened -c changelist#
p4 changes -p pending
To open a file for edit under a particular pending changelist and as a particular type
p4 edit -c changelist# -t type
To open a file for add under a particular pending changelist and as a particular type
p4 add -c changelist# -t type
To implement pessimistic locking (exclusive-open) for all files in a depot. After this changelist is submitted, only one user at a time will be able to edit files in the depot named depotname.
p4 edit -t +l //depotname/...
 


Previous Table of Contents Index Next

Perforce 2009.2: Command Reference
Copyright 1999-2009 Perforce Software.