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

Re: how come post-commit script not triggered to email commitnotifications

From: sqad <sjangity_at_yahoo.com>
Date: 2007-01-05 19:09:54 CET

Hmm, maybe I need more clarification?

I have the absolute paths to both sendmail and svnlook defined in the config
section of the 'commit-email' perl script. Also, I am using httpd as the
server. Apache's running on the root account on my machine. I have a
separate user account that has access to this repository.

When I ran the script earlier from command line, it's true, I ran as the
root user and it worked fine. But when I commit the changes via Eclipse, I
am running as another user, so is that the problem, if I understood you
correctly?

Not really sure what other changes are required?

russ0519 wrote:
>
> This is most likely a oremissions issue on the script. When you run it
> via command line it uses your credentials, but when you do it through
> eclipse it uses the credentials of apache or svnserve, depending on
> whether you're accessing the repo through http(s) protocols,
> respectivelly. Also when running through apache or svnserve, no
> environment variables are set up, so you have to use full paths everywhere
> in the script
>
>
> Russ
> Sent wirelessly via BlackBerry from T-Mobile.
>
> -----Original Message-----
> From: sqad <sjangity@yahoo.com>
> Date: Fri, 5 Jan 2007 08:53:10
> To:users@subversion.tigris.org
> Subject:
> how come post-commit script not triggered to email commit
> notifications
>
>
> I am a svn newbie, but I went through many of the threads on svn commit
> notifications, but no one had the problem I had - so appreciate the help.
>
> I am following along this guide:
> http://wiki.wsmoak.net/cgi-bin/wiki.pl?Subversion/EmailNotification
>
> With the post-commit script, when I run it from command line I get an
> email
> sent, so everything seems to be working AOK:
>
> # ./post-commit /path/to/rep 3
>
> However, when I commit changes to the repository in the Eclipse IDE, using
> the SVN plugin, I don't get any email notifications. Doesn't this mean,
> the
> 'post-commit' script isn't being triggered?
>
> [contents of script (post-commit)]
> ------------------------
> REPOS="$1"
> REV="$2"
>
> /usr/local/scripts/commit-email.pl "$REPOS" "$REV" --from
> XXX@yahoogroups.com -s "[SVN-Timely Commit] " me@hotmail.com
> --------------------------
>
> I don't understand what the problem is. It works fine via command-line,
> but
> not when I commit the code via eclipse. Help! :-(
> --
> View this message in context:
> http://www.nabble.com/how-come-post-commit-script-not-triggered-to-email-commit-notifications-tf2926591.html#a8181511
> Sent from the Subversion Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

-- 
View this message in context: http://www.nabble.com/how-come-post-commit-script-not-triggered-to-email-commit-notifications-tf2926591.html#a8182871
Sent from the Subversion Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jan 5 19:10: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.