b7d90b54a4865f5a559b366c5a3f3bac4ad47dba
[snippets/.git] / svn-hooks / zephyr-post-revprop-change
1 #!/bin/sh
2
3 REPOS="$1"
4 REV="$2"
5 USER="$3"
6 PROPNAME="$4"
7 OLD_VAL="$(cat)"
8 NEW_VAL="$(svnlook propget --revprop -r "$REV" "$REPOS" "$PROPNAME")"
9 #export PATH="/usr/bin:/bin"
10
11 (echo "$USER @(@color(red)changing revprop) @b($PROPNAME)"; echo "from: $OLD_VAL"; echo "to: $NEW_VAL") | zwrite -d -c test -i "r$REV"