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.

Getting Status Information<br />

Command<br />

anc<br />

annotate<br />

cat<br />

diff<br />

files<br />

hist<br />

info<br />

mergelist<br />

name<br />

patchlist<br />

show<br />

stat<br />

translist<br />

type<br />

wip<br />

Description<br />

determine the ancestor of a version<br />

indicate the origin of each line of a text file<br />

get the contents of a version of an element<br />

compare two versions of an element<br />

show the status of elements<br />

show the transaction history of elements or an entire depot<br />

show basic information about the current session<br />

determine which versions need to be promoted between streams<br />

list the name of the element with the specified element-ID<br />

list versions that need to be patched into the workspace’s version<br />

list objects of a particular kind (depots, for example)<br />

show the status of <strong>AccuRev</strong> elements or file system objects<br />

list transactions containing versions that need to be promoted<br />

alias for cat command<br />

report work-in-progress for workspaces backed by a stream<br />

The info command lists basic data about your <strong>AccuRev</strong> setup: username, client and server<br />

machine information, workspace and backing streams, etc.<br />

The show command lists the names of items in the repository: depots, streams, workspaces, etc.<br />

The files and stat commands (see Determining the Status of Files on page 23) list the status of<br />

elements in a workspace, or in a stream. The name command lists the pathname of an element,<br />

given its unique element-ID. This is particularly useful when an element has been renamed, and<br />

so appears under different names to different users. The anc command has options to determine<br />

several kinds of ancestor versions of a specified version (or the common ancestor of two<br />

versions). The wip command (see Tracking Other Users’ Work on page 25) lists the files under<br />

active development in the entire set of workspaces based on a particular stream.<br />

The hist command lists the transaction history of individual elements, or of entire streams or<br />

depots.<br />

The cat (or type) command retrieves the contents of a specified version of a file. The annotate<br />

command lists the contents of a specified version, indicating information about how each line of<br />

the file was created or modified.<br />

The diff command compares two versions of a text file.<br />

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

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

Saved successfully!

Ooh no, something went wrong!