|
Synopsis
List files that are open in pending changelists.
Syntax
p4 [g-opts] opened [-a] [-c changelist#] [file ...]
Description
Use p4 opened to list files that are currently open via p4 add, p4 edit, p4 delete, or p4 integrate. By default, all open files in the current client workspace are listed. You can use command line arguments to list only those files in a particular pending changelist, or to show open files in all pending changelists.
If file specifications are provided as arguments to p4 opened, only those files that match the file specifications are included in the report.
The information displayed for each opened file includes the file's name, its location in the depot, the revision number that the file was last synced to, the number of the changelist under which the file was opened, the operation it is opened for (add, edit, delete, or integrate), and the type of the file. The output for each file looks like this:
depot-file#rev - action chnum change (type) [lock-status]
where:
- depot-file is the path in depot syntax;
- rev is the revision number;
- action is the operation the file was open for: add, edit, delete, branch, or integrate;
- chnum is the number of the submitting changelist; and
- type is the type of the file at the given revision.
- If the file is locked (see p4 lock), a warning that it is *locked* appears at the line's end.
Options
-a
|
List opened files in any client workspace.
|
-c changelist#
|
List the files in pending changelist changelist#. To list files in the default changelist, use p4 opened -c default.
|
g-opts
|
See the Global Options section.
|
Usage Notes
Can File Arguments Use Revision Specifier?
|
Can File Arguments Use Revision Range?
|
Minimal Access Level Required
|
---|
No
|
No
|
list
|
- This lists all open files you have locked with p4 lock.
Examples
p4 opened -c 35 //depot/foo/...
|
List all files in pending changelist 35 that lie under the depot's foo subdirectory.
|
p4 opened -a -c default
|
List all opened files in the default changelists for all clients.
|
Related Commands
To open a file in a client workspace and list it in a changelist
|
p4 add p4 edit p4 delete p4 integrate
|
To move a file from one changelist to another
|
p4 reopen
|
To remove a file from all changelists, reverting it to its previous state
|
p4 revert
|
To create a new, numbered changelist
|
p4 change
|
To view a list of changelists that meet particular criteria
|
p4 changes
|
|