]> snippets.scripts.mit.edu Git - Scripts/git/.git/blame - 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
CommitLineData
b4a486e4
GT
1#!/bin/sh
2
3REPOS="$1"
4REV="$2"
5USER="$3"
6PROPNAME="$4"
7OLD_VAL="$(cat)"
8NEW_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"