27.01.2015 Views

CLI User's Guide - AccuRev

CLI User's Guide - AccuRev

CLI User's Guide - AccuRev

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

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 16, also.<br />

<strong>AccuRev</strong>® <strong>CLI</strong> User’s <strong>Guide</strong> 13

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

Saved successfully!

Ooh no, something went wrong!