Exit Wiki

CVS May not be the prettiest SCM we've ever used, but it does get the job done.

Here are some useful snippets to make CVS more pleasurable:

Find Locally Modified (and New) files (without a lot of glop)

 cvs -q status | grep -E "Modified|?" 

Update To latest version of a file, preserving old in a backup
(In MacCVS Pro, this is called Rollback)

cvs update -C

(This option isn't in the CVS that ships with 10.3, but is in the one that ships with 10.4 - RPW.)

Output file revision to a standard output (ala svn cat)

 cvs update -d -r REV# -p filename

Output diffs for a branch (whose start is delimited by TAGNAME)

 cvs diff -r TAGNAME -r BRANCHNAME

(at least seems to work, but it's possible that the date ranges are perhaps inclusive rather than exclusive, or the other way around) Request For Information!

Got a cool snippet? Share!

CVS Tools (last edited 2007-04-16 19:36:13 by RyanWilcox)