From 2639e30aa5208961654bc401dbb6626c2ca5f7fa Mon Sep 17 00:00:00 2001 From: build Date: Mon, 12 Mar 2007 15:11:28 +0000 Subject: [PATCH] using custom commit script for removing HUGE messages at add-time and limited to 100k otherwise --- tunings-myplc-devel/post-commit | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/tunings-myplc-devel/post-commit b/tunings-myplc-devel/post-commit index 689da9f..7f114a5 100755 --- a/tunings-myplc-devel/post-commit +++ b/tunings-myplc-devel/post-commit @@ -50,10 +50,23 @@ MAILDEST="onelab-svn@one-lab.org" FROM="$(id -un)@svn.one-lab.org" SUBJECT="svn.one-lab.org - check in:" -/usr/share/doc/subversion-1.2.3/tools/hook-scripts/commit-email.pl \ - --from "$FROM" \ - -s "$SUBJECT" \ - "$REPOS" "$REV" "$MAILDEST" +#/usr/share/doc/subversion-1.2.3/tools/hook-scripts/commit-email.pl \ +# --from "$FROM" \ +# -s "$SUBJECT" \ +# "$REPOS" "$REV" "$MAILDEST" + +# using our customized commit email script +custom=/home/build/infrastructure/tunings-myplc-devel/commit-email.pl +standard=/usr/share/doc/subversion-1.2.3/tools/hook-scripts/commit-email.pl + +if [ -x $custom ] ; then + script=$custom +else + script=$standard + SUBJECT="$SUBJECT (WARNING : Custom script lost !!!)" +fi + +$script --from "$FROM" -s "$SUBJECT" --size-limit 102400 "$REPOS" "$REV" "$MAILDEST" #log-commit.py --repository "$REPOS" --revision "$REV" -- 2.43.0