p4 update

Update a client workspace without overwriting files that have changed since last sync.

Syntax

p4 [g-opts] update [-L -n -q] [FileSpec[revSpec]]

Syntax conventions

Description

p4 update is an alias for a p4 sync -s.

Options

-L

For scripting purposes, perform the update on a list of valid file arguments in full depot syntax with a valid revision number.

-n

Display the results of the update without actually performing the update. This lets you make sure that the update does what you think it will do before you do it.

-q

Quiet operation: suppress normal output messages. Messages regarding errors or exceptional conditions are not suppressed.

g-opts

See Global options.

Usage Notes

Can File Arguments Use Revision Specifier? Can File Arguments Use Revision Range? Minimal Access Level Required Command Alias

Yes

Yes

read

p4 sync -s

Related Commands

To copy files from the depot to the client workspace

p4 sync