]> snippets.scripts.mit.edu Git - Scripts/git/.git/blobdiff - svn-hooks/zephyr-post-revprop-change
svn-hooks: Add a zephyr revprop hook and comment commit-zephyr a bit.
[Scripts/git/.git] / svn-hooks / zephyr-post-revprop-change
diff --git a/svn-hooks/zephyr-post-revprop-change b/svn-hooks/zephyr-post-revprop-change
new file mode 100755 (executable)
index 0000000..b7d90b5
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+REPOS="$1"
+REV="$2"
+USER="$3"
+PROPNAME="$4"
+OLD_VAL="$(cat)"
+NEW_VAL="$(svnlook propget --revprop -r "$REV" "$REPOS" "$PROPNAME")"
+#export PATH="/usr/bin:/bin"
+
+(echo "$USER @(@color(red)changing revprop) @b($PROPNAME)"; echo "from: $OLD_VAL"; echo "to: $NEW_VAL") | zwrite -d -c test -i "r$REV"