p4 integrated
Synopsis
Show integrations that have been submitted.
Syntax
p4 [g-opts] integrated [-b
branchname [-r]]
file ...
Description
The p4 integrated command shows the integration history of the
selected files, in the format:
file#revision-range
- integrate-action
partner-file#revision-range
where:
fileis the file argument provided top4 integrated;partner-fileis the file it was integrated from or into; and-
integrate-actiondescribes what the user did during thep4 resolveprocess, and is one of the following:Integrate Action What the User Did During the p4 resolveProcessbranch fromfiledid not previously exist; it was created as a copy ofpartner-file.branch intopartner-filedid not previously exist; it was created as a copy offile.merge fromfilewas integrated frompartner-file, acceptingmerge.merge intofilewas integrated intopartner-file, acceptingmerge.moved fromfilewas integrated frompartner-file, acceptingtheirsand deleting the original.moved intofilewas integrated intopartner-file, acceptingtheirsand creatingpartner-fileif it did not previously exist.copy fromfilewas integrated frompartner-file, acceptingtheirs.copy intofilewas integrated intopartner-file, acceptingtheirs.ignoredfilewas integrated frompartner-file, acceptingyours.ignored byfilewas integrated intopartner-file, acceptingyours.delete fromfilewas integrated frompartner-file, andpartner-filehad been previously deleted.delete intofilewas integrated intopartner-file, andfilehad been previously deleted.edit fromfilewas integrated frompartner-file, andfilewas edited within thep4 resolveprocess. This allows you to determine whether the change should ever be integrated back; automated changes (merge from) needn’t be, but original user edits (edit from) performed during the resolve should be.edit intofilewas integrated intopartner-file, andpartner-filewas reopened foreditbefore submission.add fromfilewas integrated from a deletedpartner-file, andpartner-filewas reopened foradd(that is, someone restored a deleted file by syncing back to a pre-deleted revision and adding the file).add intofilewas integrated into previously nonexistentpartner-file, andpartner-filewas reopened foraddbefore submission.
If a file toFile was ever integrated from a file fromFile, and both
toFile and fromFile match the p4 integrated filepattern
argument, each integrated action is listed twice in the p4
integrated output: once in its from form, and once in its into
form, as described above.
If the optional -b branch option is used, only files integrated from
the source to target files in the branch view are shown.
If the optional -r option is provided, the mappings in the branch view
are reversed. This option requires the use of the -b branch option.
Options
|
|
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. |
|
|
Reverses the mappings in the branch view, swapping the target files
and source files. The |
|
|
See “Global Options”. |
Usage Notes
| Can File Arguments Use Revision Specifier? | Can File Arguments Use Revision Range? | Minimal Access Level Required |
|---|---|---|
|
No |
No |
|
-
When using tagged output with
p4 integratedbe warned that thetoFileandfromFilevalues will be the opposite of how they are presented in the non-tagged output. The following example shows how the output varies:$ p4 integrated //depot/main/revisions.h //depot/main/revisions.h#1 - add into //depot/dev/revisions.h#1 $ p4 -ztag integrated //depot/main/revisions.h ... toFile //depot/main/revisions.h ... fromFile //depot/dev/revisions.h ... startToRev #none ... endToRev #1 ... startFromRev #none ... endFromRev #1 ... how add into ... change 12345
See “Global Options” for information on how to enable tagged output.