要求1、提交svn时必须填写日志日志的要求
@echo off
:
: stopscommitsthathaveemptylogmessages。
:
@echo off
set svnlook=' c :program filesvisual SVN server 寂寞的冰棍svnlook.exe' #因实际情况而异
安全
remsubversionsendsthroughthepathtotherepositoryandtransactionid
set REPOS=%1
set TXN=%2
rem check for an empty log message
% svnlook % log % repos %-t % txn %|findstr.nul
if%errorlevel%GTR0(gotoerr ) else exit 0
:err
echo. 12
echo的提交被阻止了。 请填写关于这次修改的log信息,用10个字以上重新提交。 12
exit 1
要求2 :提交SVN后,必须同步web目录
@echo off
SET REPOS=%1
SET REV=%2
SET DIR=%REPOS%/hooks
设置路径=% path %;
set working _ copy=e :PHP studyPHP tutorialwwwzhonghuan #已由checkout发出的web路径
SVN更新% working _ copy %----用户名称测试--- -密码123 #帐户和密码