CVS tips

$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

  • 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%
    
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值