From eba7ca54120691963777f5a6f3a07b31053d4ec5 Mon Sep 17 00:00:00 2001 From: schodet Date: Fri, 4 Nov 2005 18:55:01 +0000 Subject: Ajout d'un filtre. --- d/sys/lampion/local/sbin/post-commit | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3