$Id: cvs.html,v 1.3 2004/12/16 12:09:11 george Exp $
- Update from repository
-
cvs -d:pserver:userid:password@10.10.10.25:/cvsroot update -dP
-
-d: specify the CVSROOT env variable.
-dP:
-
cvs -q update -dP
- -q: silent mode, only report files changed in cvs update command
-
-d: specify the CVSROOT env variable.
- Get Log from cvs in certain time frame
-
The following code snippet is a batch file to get log from cvs server. $CVSROOT is already existed, local copy of code is right at C:/workspace/c_prj.
rem cvs to update codebase for /f "Tokens=2-4 Delims=/ " %%i in ('date /t') do set LOGDATE=%%k-%%i-%%j for /f "Tokens=1" %%i in ('time /t') do set tm=-%%i set tm=%tm::=-% set dtt=%LOGDATE%%tm% rem Log File will save to this dir set DIST_FILE=d:/cvs/log_%dtt%.log rem This is the project in your Local Machine checkout from CVS Server c: cd / cd C:/workspace/c_prj rem The Date which Log will be get after cvs log -N -d">%LOGDATE%" >%DIST_FILE% rem Using gvim to view it gvim %DIST_FILE%