[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Post-commit issues using commit-email.pl

From: Jason Forkey <jason_at_forkey.net>
Date: 2007-05-10 02:17:49 CEST

At Sun, 6 May 2007 23:13:00 -0500,
Binod <binod3@gmail.com> wrote:
>
> Hey Ryan, Thanks for the link,
> I had already gone to that link but my following answers not answered at all....
> If anyone can help me on this that would be just so great...
>
> Do I not configure these parts of commit-email.pl ?
>
> <<<#$sendmail = "/usr/sbin/sendmail";
> $smtp_server = "127.0.0.1";
> # Svnlook path. my
> $svnlook ="@SVN_BINDIR@/svnlook";>>>
>
> And what about the post-commit script?
>
> I know I will have to give the path to commit-email.pl, and just giving the path to the commit-email.pl will work?
>
> Can I use mailer.conf for while using commit-email.pl or only mailer.py takes it?
>
> If I cannot use mailer.conf where do I give the email addresses of people that need to get the email..?? Is it on post-commit script where it says
> commit-watchers@org.
>
> Do I need to know more ?
>
> Thanks for the help and looking forward to get more help.
>
> Once again thanks.
> Binod
>
>

The commit-email.pl script doesn't use mailer.conf. Here is what I did to use
it:
First, I moved the script in to the hooks directory.
Next, if you don't want to use the default configuration of sending an email
out to some address for every commit change this line:
my @project_settings_list = (&new_project);
to
my @project_settings_list = ();

Then in your post-commit script do something like this:
REPOS="$1"
REV="$2"

# working directory is undefined in hooks
cd $REPOS/hooks

./commit-email.pl "$REPOS" "$REV" -m "group1\/project1" -s "[SVN] -" -h svnserver project1@example.com
./commit-email.pl "$REPOS" "$REV" -m "group1\/project2" -s "[SVN] -" -h svnserver project2@example.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu May 10 02:18:16 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.