summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xd/sys/lampion/local/sbin/post-commit8
1 files changed, 7 insertions, 1 deletions
diff --git a/d/sys/lampion/local/sbin/post-commit b/d/sys/lampion/local/sbin/post-commit
index 18cc328..39d99c5 100755
--- a/d/sys/lampion/local/sbin/post-commit
+++ b/d/sys/lampion/local/sbin/post-commit
@@ -3,9 +3,15 @@
REPOS=$1
REV=$2
AUTHOR=$(svnlook author -r $REV $REPOS)
+L=10 # Max dirs-changed
+# Exit if only a xxx change.
+#svnlook dirs-changed -r $REV $REPOS | grep -qv '^xxx/.' || exit
+
+# Send message
(
echo "SVN commit r$REV by $AUTHOR in $REPOS:"
svnlook log -r $REV $REPOS | sed -e '/^$/d' -e 's/^/| /'
-svnlook dirs-changed -r $REV $REPOS | sed -e 's/^/> /'
+svnlook dirs-changed -r $REV $REPOS | \
+ sed -e $L's/.*/> .../' -e $L'q' -e 's/^/> /'
) | /usr/local/sbin/apbteambot-say