windows下VisualSVN-Server的钩子代码
@echo off
SET REPOS=%1
SET REV=%2
SET DIR=%REPOS%/hooks
SET WORKING_COPY=D:\phpStudy\WWW\zwcad\ZhaoPinTongJi
SET PATH=%PATH%;
svn update %WORKING_COPY% --username zhangsan--password zhangsan
其中D:\phpStudy\WWW\zwcad\ZhaoPinTongJi是你要同步到的web目录位置
账号zhangsan和密码zhangsan是你创建的当前仓库的账号和密码