I’m using Accurev for a new project, thought I’d throw up a blog post of the commands that I use most commonly:
Make a new workspace, similar to ‘git clone’ or ‘svn co’:
accurev mkws -w workspacename -b streamname_from_server -l local_directory
Note: accurev workspaces are similiar to a cloned git repo, kind of but not really…. Are you confused yet?
Update my workspace from the stream, similiarly to a “git pull”:
accurev update
Get status of my workspace, ie, see what’s changed. Same as “git status” or “svn st”:
accurev stat -n
With the ‘accurev stat -n’ command, unlike git, the files shown will be in relation to your current working directory. So if you do:
cd db/migrate accurev stat -n
You will only see files you have changed in your db/migrate folder. (Why are you changing your migrations???)
In accurev, file not checked into the work space are called “external” files, you see all these with this:
accurev stat -x
Add external file, same as “git add” or “svn add”:
accurev add -x path/to/file # or add a directory accurev add -x -d directory
Revert a file, same as “git checkout” or “svn revert”:
accurev purge path/to/file
Promote all kept files to the stream, kind like “git push” or “svn commit” but more like “git push”
accurev promote –c “JIRA-666 comment” –k
I’ll add more as my project progresses…
accurev keep -R -n -c "codenarc fixes" grails-app/domain