Click or drag to resize

CopyFilesCmdFlags Enumeration

Flags for the copy command.

Namespace:  Perforce.P4
Assembly:  p4api.net (in p4api.net.dll) Version: 2023.2.258.5793
Syntax
[FlagsAttribute]
public enum CopyFilesCmdFlags
Members
  Member nameValueDescription
None0 No flags.
Preview1 The -n flag displays a preview of the copy, without actually doing anything.
Virtual2 The -v flag causes a 'virtual' copy that does not modify client workspace files. After submitting a virtual integration, 'p4 sync' can be used to update the workspace.
Reverse4 The -r flag causes the direction of the copy to be reversed when used with a branch (-b) or stream (-S) copy.
Force8 The -F flag can be used with -S to force copying even though the stream does not expect a copy to occur in the direction indicated. Normally 'p4 copy' enforces the expected flow of change dictated by the stream's spec. The 'p4 istat' command summarizes a stream's expected flow of change.
SourceBranch16 The -s flag can be used with -b to cause fromFile to be treated as the source, and both sides of the user-defined branch view to be treated as the target, per the branch view mapping. Optional toFile arguments may be given to further restrict the scope of the target file set. -r is ignored when -s is used.
See Also