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.

test<br />

setup.pl<br />

testrun.pl<br />

analyze.pl<br />

doc<br />

Colors.doc<br />

Any number of users can create workspaces for themselves, to work with the files in this depot.<br />

On a Windows system, you might create a workspace at location C:\dvt_work. The depot’s<br />

subdirectories would be located in your workspace at:<br />

C:\dvt_work\src<br />

C:\dvt_work\test<br />

C:\dvt_work\doc<br />

You can create a workspace at any location you wish (as long as you have permission to access<br />

the disk storage). And you can move an existing workspace to another location — say, to a<br />

network drive with a larger capacity and a regular backup regimen. If you moved the workspace<br />

above to H:\Projects\ColorWheel\derek, then the three subdirectories would now be located at:<br />

H:\Projects\ColorWheel\derek\src<br />

H:\Projects\ColorWheel\derek\test<br />

H:\Projects\ColorWheel\derek\doc<br />

<strong>AccuRev</strong> needs to keep track of a workspace’s location. So you specify a pathname when you<br />

create the workspace:<br />

accurev mkws ... -l C:\dvt_work ...<br />

And if you move the workspace, using ordinary operating system tools, you must inform<br />

<strong>AccuRev</strong> of the new location:<br />

accurev chws ... -l H:\Projects\ColorWheel\derek ...<br />

Working with Files in a Workspace<br />

Your workspace is a private work area. The files in your workspace belong to you. You can edit<br />

them whenever you like — no special “check out” command is required. For example, to edit the<br />

Colors.doc document, you might start a word processor and specify the pathname<br />

H:\Projects\ColorWheel\derek\doc\Colors.doc.<br />

When you specify files to an accurev command, however, you usually don’t use full pathnames.<br />

In general, you cd (“change directory”) to the workspace, then use relative pathnames to refer to<br />

files.<br />

H:<br />

cd \Projects\Colorwheel\derek\doc<br />

... enter accurev commands ...<br />

As usual, you can use simple filenames for files in the current directory:<br />

accurev stat Colors.doc<br />

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

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

Saved successfully!

Ooh no, something went wrong!