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

Re: Issues with post-commit hook script !!

From: Himanshu Raina <raina_himanshu_at_yahoo.com>
Date: 2007-07-31 17:04:46 CEST

Hi,

Look my requirement is as follows. Every time a change is done onto the repository i want the server to send out a mail to the user specifying the file that has been modified, the path of the file , the user who modified it and the date when it was modified. I have no clue about perl programming so if in order to achieve the desired results i have to modify the commit-email.pl then i would require some inputs. How will the script be invoked when changes are made ??

regards
Himanshu Raina

Sreedhar Kharidehal <sreedhar.kharidehal@gmail.com> wrote: You have to place the post-commit.sh and commit-email.pl in the hooks
directory of the repository

On 7/31/07, Himanshu Raina wrote:
> Hi,
>
> Thanks for the help !! I have another query ? How will this script be
> invoked everytime a change has been into the repository. As of now i am
> passing the arguements manually. How can the script pick up the path and the
> revision number of it's own?
>
> regards
> Himanshu Raina
>
> Sreedhar Kharidehal wrote:
> I think --from is not there in post-commit.sh file. It should be
> something like
>
> "$REPOS" "$REV" "to email addresses" -s
> "subject line" --from "from email address"
>
> towards the end of the file
>
> Hope this helps
>
> -sreedhar
>
> On 7/31/07, Himanshu Raina wrote:
> > Hi,
> >
> > How can i make use of post-commit hook script. In the post-commit script i
> > have mentioned the path to commit-email.pl but one executing the
> post-commit
> > script i get the error
> >
> > "use of either `-h' or `--from' is mandatory when sending email using
> direct
> > SMTP"
> >
> > Do i need to modify the commit-email.pl script ?? If yes what values have
> to
> > be updated and also every time changes are done to the repository how will
> > it be notified ??
> >
> > Regards
> > Himanshu Raina
> >
> >
> > ________________________________
> > Yahoo! oneSearch: Finally, mobile search that gives answers, not web
> links.
> >
> >
>
>
> --
> sreedhar
>
>
>
> ________________________________
> Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on,
> when.
>
>

-- 
sreedhar
       
---------------------------------
Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel and lay it on us.
Received on Tue Jul 31 17:03:28 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.