Get a list of submitted integrations for the passed-in file specs.
Namespace: Perforce.P4Assembly: p4api.net (in p4api.net.dll) Version: 2015.1.103.4687 (2015.1.103.4687)
Syntax
C# |
---|
public IList<FileIntegrationRecord> GetSubmittedIntegrations( IList<FileSpec> filespecs, Options options ) |
Visual Basic |
---|
Public Function GetSubmittedIntegrations ( _ filespecs As IList(Of FileSpec), _ options As Options _ ) As IList(Of FileIntegrationRecord) |
Visual C++ |
---|
public: IList<FileIntegrationRecord^>^ GetSubmittedIntegrations( IList<FileSpec^>^ filespecs, Options^ options ) |
Parameters
- filespecs
- Type: System.Collections.Generic..::..IList<(Of <(<'FileSpec>)>)>
- options
- Type: Perforce.P4..::..Options
Return Value
Remarks
p4 help integrated
integrated -- List integrations that have been submitted
p4 integrated [-r] [-b branch] [file ...]
The p4 integrated command lists integrations that have been submitted.
To list unresolved integrations, use 'p4 resolve -n'. To list
resolved but unsubmitted integrations, use 'p4 resolved'.
If the -b branch flag is specified, only files integrated from the
source to target files in the branch view are listed. Qualified
files are listed, even if they were integrated without using the
branch view.
The -r flag reverses the mappings in the branch view, swapping the
target files and source files. The -b branch flag is required.
Examples
To get the file intergration records for the path //depot/rel defined
by branch specification main_to_rel:
CopyC#
To get the file intergration records for the path //depot/main defined
by branch specification main_to_rel in reverse direction:
CopyC#

GetSubmittedIntegrationsCmdOptions opts = new GetSubmittedIntegrationsCmdOptions(GetSubmittedIntegrationsCmdFlags.None, "main_to_rel"); FileSpec filespec = new FileSpec(new DepotPath("//depot/rel/..."), null); IList<FileSpec> filespecs = new List<FileSpec>(); filespecs.Add(filespec); IList<FileIntegrationRecord> target = Repository.GetSubmittedIntegrations(filespecs, opts);

GetSubmittedIntegrationsCmdOptions opts = new GetSubmittedIntegrationsCmdOptions(GetSubmittedIntegrationsCmdFlags.ReverseMappings, "main_to_rel"); FileSpec filespec = new FileSpec(new DepotPath("//depot/rel/..."), null); IList<FileSpec> filespecs = new List<FileSpec>(); filespecs.Add(filespec); IList<FileIntegrationRecord> target = Repository.GetSubmittedIntegrations(filespecs, opts);