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.

Here are a couple of typical transactions, as listed by hist:<br />

transaction 43020; move; 2009/10/28 14:34:44 ; user: derek<br />

dst : \.\src\White.java<br />

src : \.\src\W.java<br />

\.\src\W.java 6/6 (6/6)<br />

ancestor: (6/5)<br />

transaction 43019; keep; 2009/10/28 14:27:40 ; user: derek<br />

# improve error message<br />

\.\src\W.java 6/5 (6/5)<br />

ancestor: (6/4)<br />

Tracking Other Users’ Work<br />

With <strong>AccuRev</strong>, the standard way to manage a group of users working on the same project is to<br />

have a dynamic stream for the project (termed the backing stream), along with a private<br />

workspace for each user. All the workspaces are based on (or “backed by”) the common backing<br />

stream. The wip command (“work in progress”) shows which files are under active development<br />

across the entire project, with a workspace-by-workspace breakdown.<br />

> accurev wip -s brass_dvt<br />

\.\tools\perl\findtags.pl<br />

brass_dvt_mary<br />

\.\tools\perl\reporter.pl<br />

brass_dvt_mary<br />

\.\doc\chap01.doc<br />

brass_dvt_john<br />

\.\doc\chap04.doc<br />

brass_dvt_john<br />

\.\doc\procfiles.py<br />

brass_dvt_john<br />

\.\tools\perl\reporter.pl<br />

brass_dvt_john<br />

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

The set of users working on a particular project (or subproject) all have workspaces that use the<br />

same backing stream. Users make changes in their private workspaces, and preserve those private<br />

changes with keep commands. Then they make the changes public — that is, available to be<br />

incorporated into other users’ workspaces — with promote commands.<br />

Other users’ work never appears in your workspace automatically. This could be destabilizing to<br />

your own work (no matter how good their code is!). Instead, you issue an update command when<br />

you decide to incorporate your colleagues’ recently promoted changes into your work. This brings<br />

into your workspace all “new” versions of elements — versions created since the workspace’s last<br />

update.<br />

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

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

Saved successfully!

Ooh no, something went wrong!