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