vim /data/svndata/phpjx/hooks/post-commit
1 #!/bin/bash
2 svn up /var/www/html/phpjx/ --username test --password 123456
3 if [ $? == 0 ]
4 then
5 echo "ok" >> /tmp/z.out
6 else
7 echo "error" >> /tmp/z.out
8 fi
chmod +x /data/svndata/phpjx/hooks/post-commit