02.05.2013 Views

User Guide - MKS

User Guide - MKS

User Guide - MKS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Key Apply CP<br />

Concepts<br />

How Apply CP<br />

Works<br />

Using the Apply CP Command<br />

The following outlines the key concepts associated with the Apply CP<br />

command:<br />

The Apply CP operation occurs in the project (whereas the Resync CP<br />

operation occurs only in the sandbox). You can perform the Apply CP<br />

operation from a sandbox, but this only acts as a redirector to the<br />

project.<br />

In principle, change packages are applied through a revision process.<br />

By applying a change package, you can incorporate only those<br />

changes that you want to include in the project.<br />

Apply CP cannot address changes that require merging. Apply CP can<br />

only make changes based on complete files—it can only add files,<br />

drop files, and update a file revision. For more information on<br />

resolving merge questions, see “Using the Resync CP Command” on<br />

page 375.<br />

Apply CP only works with closed change packages; therefore, you<br />

must close the change package before you apply it. The Apply CP<br />

operation is committing changes directly to a project and, for this<br />

reason, it is important that the entire change package is treated as a<br />

single, indivisible change. If a change package is not closed, it may not<br />

stand alone and may break the build.<br />

Source Integrity allows you to run the Apply CP command first and<br />

then, if required, run the Resync CP command to perform any<br />

required merge operations.<br />

If an Apply CP operation is not successfully completed,<br />

Source Integrity tells you what you need to do to apply the change<br />

package successfully.<br />

The Apply CP backfill list presents you with all the change packages<br />

that the selected change packages depend on. To run the command,<br />

you must accept the entire list.<br />

The Apply CP operation adds and drops files, and updates file revisions to<br />

include specific content in a project. For example, consider a simplified<br />

application of the command in the main trunk of development for the<br />

Aurora project (Aurora_Project.pj). The project member, main.c,<br />

includes a bug fix that allows the printing of version information. Issue 21<br />

addresses the bug fix and is associated with the file main.c (revision 1.2)<br />

through change package (CP) 21:1.<br />

The buildmaster wants to pick up the changes that address the bug fix and<br />

apply these to a variant project, Aurora_Variant_1_0. In the variant<br />

project, main.c is at revision 1.1.<br />

357

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!