27.01.2015 Views

CLI User's Guide - AccuRev

CLI User's Guide - AccuRev

CLI User's Guide - AccuRev

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.

(remove command), its versions become inaccessible. This is not irrevocable, though: you can<br />

reactivate a stream, making its versions accessible again, with the reactivate command.<br />

Getting Work Done with the <strong>CLI</strong><br />

<strong>AccuRev</strong> does not force you to proceed with your software development work in any particular<br />

way. The workflow described in the following sections shows how you can put the <strong>AccuRev</strong> <strong>CLI</strong><br />

to good use, but it certainly isn’t the only way to get your work done.<br />

Our example workflow includes these topics:<br />

• Creating a Workspace<br />

• Placing Files Under Version Control<br />

• Editing Files in a Workspace<br />

• Checkpointing — Saving Private Versions<br />

• Comparing Versions of a Text File<br />

• Making Your Changes Public<br />

• Concurrent Development — Working Well with Others<br />

• Determining the Status of Files<br />

• Getting in Touch With Your Past<br />

• Tracking Other Users’ Work<br />

• Incorporating Other Users’ Work into Your Workspace<br />

• Concurrent Development — When Streams Collide<br />

Creating a Workspace<br />

Use the accurev mkws command to create a new workspace. Using command-line options, you<br />

must specify three parameters:<br />

• Name of backing stream (–b option): Each workspace is associated with (or “based on”, or<br />

“backed by”) one of the depot’s streams. If a depot represents a particular development<br />

project, then a stream represents a sub-project. The backing stream acts as a “data<br />

switchboard”, organizing the sharing of your changes to files with changes made by other<br />

members of your development team.<br />

You can name any dynamic stream or snapshot (static stream) as the backing stream for the<br />

new workspace. You cannot choose a workspace stream — a workspace cannot be based on<br />

another workspace. For example, to specify the stream named brass_dvt as the backing<br />

stream:<br />

-b brass_dvt<br />

• Name of new workspace (–w option): <strong>AccuRev</strong> identifies each workspace by a simple name,<br />

which must be unique across the entire repository. That is, two workspaces cannot have the<br />

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

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

Saved successfully!

Ooh no, something went wrong!