Perforce 2000.2 Command Reference (2000.2.cr.1)
<< Previous Chapter
p4 groups
Table of Contents
Index
Perforce on the Web
Next Chapter >>
p4 help

p4 have


Synopsis

List files and revisions that have been synced to the client workspace

Syntax

p4 [g-opts] have [file...]

Description

List those files and revisions that have been copied to the client workspace with p4 sync. If file patterns are provided, the list is limited to those files that match one of the patterns, and to those files that are mapped to the client view.

p4 have lists the files, one per line, in the format:

Options

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

For instance, if you use p4 add to open a newly-created file in your client workspace for add, or if you use p4 integrate to create a group of files in your client workspace, but haven't submitted them, the new files will not show up in the output of p4 have.

The set of all files in your client workspace is the union of the set of files listed by p4 have with the set of files listed by p4 opened.

Examples

p4 sync //depot/foo...
p4 have //depot/foo

p4 sync //depot/foo/...#4
p4 have //depot/foo

In each of these two pairs of commands:

The first p4 have will show that the highest revision of the file has been copied to the client workspace.

The second p4 have will show that the fourth revision is the revision currently in the client workspace.

Related Commands

To copy file revisions from the depot to the client workspace

p4 sync


Perforce 2000.2 Command Reference (2000.2.cr.1)
<< Previous Chapter
p4 groups
Table of Contents
Index
Perforce on the Web
Next Chapter >>
p4 help
Please send comments and questions about this manual to [email protected].
Copyright 1997, 2000 Perforce Software. All rights reserved.
Last updated: 12/21/00