1.进入svn 项目目录下的hooks文件
cd /var/svn/o2o/hooks
- 建立post-commit执行文件
#cp post-commit.tmpl post-commit
#chmod +x post-commit #给执行权限
3.创建svn项目检出目录,在/home/svn-work下检出
svn checkout svn://192.168.1.249/o2o
4.配置post-commit
export LANG=en_US.UTF-8
SVN=/usr/bin/svn
WORK=/home/svn-work/o2o
$SVN update $WORK --username dexing --password dexing
5.重启svnserve
#killall svnserve
#svnserve -d -r /var/svn/