summaryrefslogtreecommitdiff
path: root/d/sys/lampion/local/sbin/post-commit
blob: 39d99c5ac61416b58d1ab177e972e9ab81850dc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/zsh

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 $L's/.*/> .../' -e $L'q' -e 's/^/> /'
) | /usr/local/sbin/apbteambot-say