#!/bin/sh
REPOS="$1" # 本仓库的目录路径
REV="$2" # 版本修订号
UUID=`svnlook uuid $REPOS`
/usr/bin/wget --header "`/usr/bin/wget -q --output-document - \
'http://localhost:8080/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,":",//crumb)'`"\
--header "Content-Type:text/plain;charset=UTF-8" \
--post-data "`svnlook changed --revision $REV $REPOS`" \
--output-document "-" \
--timeout=10 \
--read-timeout=10 \
--tries=2 \
"http://localhost:8080/subversion/${UUID}/notifyCommit?rev=$REV" \