02.05.2013 Views

User Guide - Mks.com

User Guide - Mks.com

User Guide - Mks.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Archive for patch.c<br />

Using the Resync CP Command<br />

Performing a Resync CP operation on two change packages using the<br />

Ignore Branches option<br />

Running the Resync CP for two change packages requires more than a<br />

three-way merge and therefore fails. Using the Ignore Branches option<br />

(--ignoreBranches) Resync CP can successfully <strong>com</strong>plete, but with a<br />

restriction. The restriction is that Source Integrity searches both change<br />

packages, takes the highest revision it finds, and uses this revision to<br />

overwrite the working file in your sandbox.<br />

In our example, the Resync CP operation would take patch.c at revision<br />

1.3.1.2 and check it out to the sandbox, overwriting revision 1.4.<br />

NOTE<br />

1.4<br />

1.3.1.2 CP 10:1<br />

1.3.1.1<br />

1.3<br />

1.2<br />

1.1<br />

1.2.1.2 CP 9:1<br />

1.2.1.1<br />

patch.c<br />

patch.c<br />

patch.c<br />

Project<br />

Variant Project 1<br />

1.3.1.2<br />

Rapid Development<br />

creates a bug fix<br />

Buildmaster is<br />

rolling out a fix<br />

for a patch<br />

There are only two ways to successfully <strong>com</strong>plete the preceding scenario<br />

without restrictions: address it manually, or perform Resync CP and Apply CP<br />

twice (once for each change package), checking in the merged changes at the<br />

head revision after each operation.<br />

The Ignore Branches option can also be used to ac<strong>com</strong>modate the case<br />

where one developer has created the same fixes for both the project and the<br />

variant, and associated with the same change package.<br />

1.4<br />

Variant Project 2<br />

1.2.1.2<br />

Product team needs<br />

all the changes for<br />

the master project<br />

417

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

Saved successfully!

Ooh no, something went wrong!