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.

This example illustrates a common (underlap) scenario: john brings an old version,<br />

brass32_dvt_mary/12, of the element into his workspace, using the Send to Workspace (<strong>CLI</strong>:<br />

co) command; this old version is an ancestor of the version currently in the backing stream of<br />

john’s workspace.<br />

Techniques for Selecting Elements<br />

The following sections describe techniques for specifying the elements to be processed by a<br />

command, based on <strong>AccuRev</strong> status, on filename, or both.<br />

Selecting Elements Based on their Status<br />

A few command-line options are recognized by many of the accurev commands, and work<br />

identically (or nearly identically) in each command. These options act as filters, selecting a subset<br />

of the depot’s elements based on their element status. This makes it easy to select sets of elements<br />

for a command to operate on. You can use these filter options alone or in combination with<br />

filename arguments. Examples:<br />

Invoke the keep command on all items in the current directory:<br />

accurev keep *<br />

Invoke the keep command on all items in the current directory with (modified) status.<br />

accurev keep -m *<br />

Invoke the add command on all items in the current directory with (external) status and a .png<br />

filename suffix.<br />

accurev add -x *.png<br />

Invoke the stat command on all items in the workspace, in all directories.<br />

accurev stat -a<br />

The following sections describe useful scenarios of selecting a set of elements in your workspace,<br />

based on the elements’ current status. Be sure to read the section Performance Considerations for<br />

Element-Selection Commands on page 15, also.<br />

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

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

Saved successfully!

Ooh no, something went wrong!