]> sipb.mit.edu Git - snippets/.git/blobdiff - svn-hooks/commit-zephyr
svn-hooks: Add a zephyr revprop hook and comment commit-zephyr a bit.
[snippets/.git] / svn-hooks / commit-zephyr
index f23877ab5a0a555a1f276ae0b2df4b9582a4d76d..b3f2f19b1ab068e629bbf268c0de080c16fc4ee3 100755 (executable)
@@ -1,4 +1,13 @@
 #!/bin/bash
+#
+# This is a script that can be called from a Subversion post-commit hook
+# to zephyr a summary of the commit or the full commit.
+#
+# Use by putting something like the following in hooks/post-commit:
+# REPOS="$1"
+# REV="$2"
+# /mit/snippets/svn-hooks/commit-zephyr "$REPOS" "$REV" -c scripts
+# /mit/snippets/svn-hooks/commit-zephyr "$REPOS" "$REV" --full -c scripts-auto -i commits
 
 CLASS=test
 INSTANCE=@
@@ -38,4 +47,4 @@ svnlook info "$REPOS" -r "$REV" | (
     else
        echo svnlook diff "$REPOS" -r "$REV"
     fi
-) | zwrite -d -c "$CLASS" -i "$INSTANCE" -O "auto" -s "r$REV - $dirs"
+) | zwrite -d -c "$CLASS" -i "$INSTANCE" -O "auto" -s "SVN: r$REV"