============================================== ==CHECKOUTS > set | grep CVSROOT ... See CVSROOT is set and readable. > umask 002 ... Insure group-write permission > cvs co -c ... See list of projects > mkdir prj; cd prj; cvs co project .. Checkout the project in prj. > chmod -R u+w . .. Unix, make all files writeable together. ============================================== ==STATUS To see non cvs files. > cvs up 2> nul Terse cvs-stat. > alias cvss='cvs -n -q update' See what is NOT upto-date > cvs status 2>nul | grep "^File" | grep -v Up-to-date See what is out-of-date (-n for dont do anything), ie. need 'cvs up'. > cvs -n -q update Find version of FILE checked out. > grep -i FILE CVS/Entries ============================================== ==OLD FILES DATE can be Now,Yesterday,Today,21-Dec-1982,1982-12-21 21:10,etc See cvs.info and cvs.faq To see older version VER of FILE. > cvs up -p -r VER FILE To see older version of FILE as it was on DATE in repo. > cvs up -p -D DATE FILE > FILE.old To recreate a dir as on particular date (eg. on Jan 25, 2000) do: > cd /tmp > cp -rip currentsandbox/CVS > cvs up -D 2000-01-25 cvs-old(){ if [[ "$#" -lt 2 ]] ; then echo "USAGE: cvs-old VER FILE; eg. cvs-old 1.2 mes.c, you get mes.c.1.2" return fi echo "cvs up -p -r $1 $2 > $2.$1" cvs up -p -r $1 $2 > $2.$1 } ============================================== ==DIFFS Version HEAD is top of tree, Version BASE is the checked out version. See your changes since checkout. > cvs diff See repository changes since checkout. > cvs diff -D now See repo checkins not in your checkout. > cvs diff -r HEAD -r BASE See all the versions number of FILE in repo. > cvs log FILE See diff between VER1 and VER2 > cvs diff -r VER1 -r VER2 To see your edits in windiff. > cvs up -p -r BASE FILE > x; windiff FILE x Slash to backslashes, ie. do $X =~ s,/,\\,g; > echo ${X//\//\\} Windiff cannot handle /, needs only \\. windiff(){ echo "windiff.exe ${1//\//\\} ${2//\//\\} &" windiff.exe ${1//\//\\} ${2//\//\\} & } Windiff your changes: cvs-windiff() { if [[ ! -r "$1" || ! -w "/tmp" ]] ; then echo "Usage: cvs-windiff FILES, need \\\\tmp to checkout cvs BASE files." return fi for i in $@ ; do echo "cvs up -r BASE -p $i > \\\\tmp\\\\$i" cvs up -r BASE -p $i > /tmp/$i ; done windiff.exe . \\tmp & } ============================================== EOF