14.01.2013 Views

AccuRev CLI User's Guide

AccuRev CLI User's Guide

AccuRev CLI User's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Selecting Non-Member Modified Elements<br />

If you want to make the best use of the default group, you will periodically need to add modified<br />

elements to the default group if they aren’t already in it. You can select non-member modified<br />

elements with the –n option. To add all non-member modified elements to the default group:<br />

accurev co -n<br />

Selecting Pending Elements<br />

The end goal of any change is to promote that change to the backing stream. All changes, whether<br />

kept or not, are considered to be pending. Pending is short for “pending promotion”. The pending<br />

option is necessary because –k does not select modified elements and –m does not select kept<br />

elements. To list all elements that are pending promotion in the current workspace:<br />

accurev stat -p<br />

Selecting Overlapping/Underlapping Elements<br />

Elements that you have changed and have also been changed in the backing stream since you last<br />

updated your workspace are called overlapping. Before you can promote these elements, you<br />

must merge your changes with the new changes in the backing stream. To get a list of all<br />

overlapping elements:<br />

accurev stat -o<br />

When you are ready to do the merges, you can do a merge of all overlapping elements very<br />

simply:<br />

accurev merge -o<br />

Underlap status is similar to overlap status, in that an element has changed in your workspace and<br />

also in the backing stream. With underlap, the changes in your workspace version have already<br />

been promoted to the backing stream (from another workspace, or from a stream elsewhere in the<br />

depot’s stream hierarchy). In many cases, the most appropriate action is to use the purge<br />

command to “undo” the changes in your workspace. In other cases, a merge-promote sequence is<br />

most appropriate.<br />

To get a list of all underlapping elements:<br />

accurev stat -U<br />

To purge the changes in underlapping elements, specify them on the command line or in a listfile:<br />

accurev purge blink.java BlinkProj.doc<br />

Note: purge restores the version of an element that was in the backing stream at the time of your<br />

workspace’s most recent update. You might need to perform another update to bring the version<br />

causing the underlap status into the workspace.<br />

<strong>AccuRev</strong> <strong>CLI</strong> User’s <strong>Guide</strong> 14

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

Saved successfully!

Ooh no, something went wrong!