Click or drag to resize

SyncFilesCmdFlags Enumeration

Flags for the sync command.

Namespace:  Perforce.P4
Assembly:  p4api.net (in p4api.net.dll) Version: 2023.2.258.5793
Syntax
[FlagsAttribute]
public enum SyncFilesCmdFlags
Members
  Member nameValueDescription
None0 No flags.
Force1 The -f flag forces resynchronization even if the client already has the file, and overwriting any writable files. This flag doesn't affect open files.
ProcessLikeLabel2 The -L flag can be used with multiple file arguments that are in full depot syntax and include a valid revision number. When this flag is used the arguments are processed together by building an internal table similar to a label. This file list processing is significantly faster than having to call the internal query engine for each individual file argument. However, the file argument syntax is strict and the command will not run if an error is encountered.
Preview4 The -n flag previews the operation without updating the workspace.
PreviewSummary8 The -N flag also previews the operation without updating the workspace, but reports only a summary of the work the sync would do.
ServerOnly16 The -k flag updates server metadata without syncing files. It is intended to enable you to ensure that the server correctly reflects the state of files in the workspace while avoiding a large data transfer. Caution: an erroneous update can cause the server to incorrectly reflect the state of the workspace.
PopulateClient32 The -p flag populates the client workspace, but does not update the server to reflect those updates. Any file that is already synced or opened will be bypassed with a warning message. This option is very useful for build clients or when publishing content without the need to track the state of the client workspace.
Quiet64 The -q flag suppresses normal output messages. Messages regarding errors or exceptional conditions are not suppressed.
ReopenNewLocation128 The -r flag allows open files which are mapped to new locations in the depot to be reopened in the new location. By default, open workspace files remain associated with the depot files that they were originally opened as.
SafeMode256 The -s flag adds a safety check before sending content to the client workspace. This check uses MD5 digests to compare the content on the clients workspace against content that was last synced. If the file has been modified outside of Perforce's control then an error message is displayed and the file is not overwritten. This check adds some extra processing which will affect the performance of the operation.
DisableParallel512 Auto parallel sync is turned off by unsetting the net.parallel.threads configurable. A user may override the configured auto parallel sync options on the command line, or may disable it via 'p4 sync --parallel=0'.
See Also