02.05.2013 Views

User Guide - MKS

User Guide - MKS

User Guide - MKS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 12: Advanced Change Package Operations<br />

Resolving<br />

Conflicts<br />

354<br />

If developers resynchronize only a single file into their sandboxes, their<br />

builds may break because of new dependencies in the code. Such broken<br />

builds cause delays and prevent the team from completing their work on<br />

time. However, it is possible to avoid this lost time by using the Resync CP<br />

and Resync By CP commands.<br />

Resync CP allows developers to specify a change package and have all<br />

changes associated with that change package resynchronized into their<br />

sandboxes. The commands save development time because they:<br />

automatically search for the required files<br />

determine what other change packages the selection is dependant on<br />

(this is known as the backfill list) and also resynchronize those change<br />

packages into the sandbox<br />

If the developer is working on a file conflict, Resync CP and Resync By CP<br />

also merge new information into a file. The merge operation ensures that<br />

the sandbox is up-to-date and that no changes are lost.<br />

The Resync CP and Resync By CP commands also allow a developer to<br />

remove a bug fix or feature that is incomplete or not working.<br />

The basic process for resolving conflicts is to apply the target change<br />

package using the Apply CP command. If the Apply CP operation fails<br />

because of a merge conflict, you can do one of the following:<br />

use the Resync CP command to create a resolution change package. A<br />

resolution change package is a specialized change package that<br />

records all applied change packages, resolved conflicts, checked in<br />

modified files, and conflicts resolved by merging.<br />

use the <strong>MKS</strong> Visual Merge tool to resolve conflicts and perform<br />

merges. Depending on your preferences, Visual Merge may appear by<br />

default for conflict resolution. For information on using Visual Merge<br />

for conflict resolution, see “Working With <strong>MKS</strong> Visual Merge” on<br />

page 330. For information on the <strong>MKS</strong> Visual Merge tool, see “<strong>MKS</strong><br />

Visual Merge Interface” on page 101.<br />

The newly created resolution change package is then applied to the project<br />

using the Apply CP command. The process involves the following key<br />

steps:<br />

Use the Apply CP command to apply a change package to the main<br />

trunk of development.<br />

If no merges are required and the Apply CP operation succeeds, the<br />

changes are made in the project.<br />

u s e r g u i d e

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

Saved successfully!

Ooh no, something went wrong!