Notes for CVS Users : Common Operations

Common Operations
This section lists common version-control operations, and describes how to perform them with CVS, with the AccuRev CLI, and with the AccuRev GUI.
Obtaining a copy of the source files
CVS
cvs checkout <module>
AccuRev CLI
accurev mkws –w <workspace-name> –b <backing-streamname> –l <workspace-location>
AccuRev GUI
File > New > Workspace
Placing files under version control
CVS
cvs add <file(s)>
AccuRev CLI
accurev add <file(s)>
AccuRev GUI
Select files, right-click, Add to Depot
Bringing others’ changes into your workspace/sandbox
CVS
1. cvs update –dP
2. Edit any merge conflicts.
AccuRev CLI
1. accurev update
2. accurev merge –o (edit any merge conflicts for each file)
AccuRev GUI
1. Click Update button.
2. Choose Overlap search.
3. Select files, right-click, Merge.
Saving your changes
CVS
cvs commit
AccuRev CLI
accurev keep –m
accurev promote –k
AccuRev GUI
1. Choose Modified search.
2. Select files, right-click, Keep.
3. Choose Kept search.
4. Select files, right-click, Promote.
Finding the history of files
CVS
cvs history [ <file(s)> ]
AccuRev CLI
accurev hist [ <file(s)> ]
   ... or ...
accurev hist –a
AccuRev GUI
1. Select file, right-click, History > Show History.
   ... or ...
1. Admin > Depots
2. Right-click depot, History.
Finding the status of files in your workspace/sandbox
CVS
cvs status <file(s)>
AccuRev CLI
accurev stat <file(s)>
   ... or ...
accurev files <file(s)>
AccuRev GUI
Automatically displayed in File Browser
Removing files
CVS
1. cvs remove <file(s)>
2. cvs commit
AccuRev CLI
1. accurev defunct <file(s)>
2. accurev promote <file(s)>
AccuRev GUI
1. Select files, right-click, Defunct.
2. Select files, right-click, Promote.
Reverting changes to files
CVS
cvs unedit <file(s)>
AccuRev CLI
accurev purge <file(s)>
AccuRev GUI
Select files, right-click, Revert to > Backed Version.
   ... or ...
Select files, right-click, Revert to > Most Recent Version.
Moving files
CVS
1. cp <old-name> <new-name>
2. cvs remove <old-name>
3. cvs add <new-name>
AccuRev CLI
1. accurev move <old-name> <new-name>
2. accurev promote <new-name>
AccuRev GUI
1. Select file, right-click, Rename.
2. Select file, right-click, Promote.
Checking out files to edit
CVS
cvs edit <file(s)>
AccuRev CLI
not necessary; just start editing the file
AccuRev GUI
not necessary; just start editing the file with right-click, Edit.
Comparing versions of files
CVS
cvs diff –r <rev1> –r <rev2> <file>
AccuRev CLI
accurev diff –v <rev1> –V <rev2> <file>
AccuRev GUI
1. right-click file, History > Browse Versions.
2. right-click version, Diff Against > Other Version, click other version

AccuRev, Inc.
Phone: 781-861-8700
Fax: 781-861-8704
support@accurev.com