Submit command options
Namespace: Perforce.P4Assembly: p4api.net (in p4api.net.dll) Version: 2015.1.103.4687 (2015.1.103.4687)
Syntax
C# |
---|
public Options( SubmitFilesCmdFlags flags, int changelist, Changelist newChangelist, string description, ClientSubmitOptions submitOptions ) |
Visual Basic |
---|
Public Sub New ( _ flags As SubmitFilesCmdFlags, _ changelist As Integer, _ newChangelist As Changelist, _ description As String, _ submitOptions As ClientSubmitOptions _ ) |
Visual C++ |
---|
public: Options( SubmitFilesCmdFlags flags, int changelist, Changelist^ newChangelist, String^ description, ClientSubmitOptions^ submitOptions ) |
Parameters
- flags
- Type: Perforce.P4..::..SubmitFilesCmdFlags
- changelist
- Type: System..::..Int32
- newChangelist
- Type: Perforce.P4..::..Changelist
- description
- Type: System..::..String
- submitOptions
- Type: Perforce.P4..::..ClientSubmitOptions
Return Value
Remarks
p4 help submit
submit -- Submit open files to the depot
p4 submit [-r -s -f option]
p4 submit [-r -s -f option] file
p4 submit [-r -f option] -d description
p4 submit [-r -f option] -d description file
p4 submit [-r -f option] -c changelist#
p4 submit -i [-r -s -f option]
'p4 submit' commits a pending changelist and its files to the depot.
By default, 'p4 submit' attempts to submit all files in the 'default'
changelist. Submit displays a dialog where you enter a description
of the change and, optionally, delete files from the list of files
to be checked in.
To add files to a changelist before submitting, use any of the
commands that open client workspace files: 'p4 add', 'p4 edit',
etc.
If the file parameter is specified, only files in the default
changelist that match the pattern are submitted.
Files in a stream path can be submitted only by client workspaces
dedicated to the stream. See 'p4 help client'.
Before committing a changelist, 'p4 submit' locks all the files being
submitted. If any file cannot be locked or submitted, the files are
left open in a numbered pending changelist. 'p4 opened' shows
unsubmitted files and their changelists.
Submit is atomic: if the operation succeeds, all files are updated
in the depot. If the submit fails, no depot files are updated.
The -c flag submits the specified pending changelist instead of the
default changelist. Additional changelists can be created manually,
using the 'p4 change' command, or automatically as the result of a
failed attempt to submit the default changelist.
The -d flag passes a description into the specified changelist rather
than displaying the changelist dialog for manual editing. This option
is useful for scripting, but does not allow you to add jobs or modify
the default changelist.
The -f flag enables you to override submit options that are configured
for the client that is submitting the changelist. This flag overrides
the -r (reopen)flag, if it is specified. See 'p4 help client' for
details about submit options.
The -i flag reads a changelist specification from the standard input.
The user's editor is not invoked.
The -r flag reopens submitted files in the default changelist after
submission.
The -s flag extends the list of jobs to include the fix status
for each job, which becomes the job's status when the changelist
is committed. See 'p4 help change' for details.