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

RE: post-commit question/issue

From: Andrew R Feller <afelle1_at_lsu.edu>
Date: 2007-05-02 19:31:44 CEST

Hello Binod,

 

What I did after I got your email?

* I created a folder called scripts in
/home/svn/repos/hooks/scripts

* Then I created a file called mailer.py in
/home/svn/repos/hooks/scripts/mailer.py and copied mailer.py from the
link that you provided: http://subversion.tigris.org/tools_contrib.html

* I made mailer.py executable by using chmod 755 mailer.py

* I changed my post-commit.sh file in hooks folder to
post-commit and made is executable by using chmod 755 post-commit

* At the end of my post-commit file, I also added as you
mentioned ${REPOS}/hooks/scripts/mailer.py commit "${REPOS}" "${REV}"

 

What questions do I have now?

* What do I do with the following lines in the post-commit file?

o commit-email.pl "$REPOS" "$REV" commit-watchers@example.org

o log-commit.py --repository "$REPOS" --revision "$REV"

 

Suggestion(s)

* Create a configuration file for mailer.py based off of the
template from
http://svn.collab.net/repos/svn/trunk/tools/hook-scripts/mailer/mailer.c
onf.example. The mailer.py contribution defaults to using a
configuration file called "mailer.conf" in your repository's conf
directory. If you open mailer.py, it has how the executable can be
called and the different parameters you can specify one of which
overrides the configuration file it uses.

* In the mailer.conf file, there will be a property called
"to_addr" that takes a space-separated list of email addresses to email
whenever a commit occurs on the repository. Mailer.conf is documented
heavily!

* Don't use either commit-email.pl or log-commit.py. According
to the Subversion contribution page, mailer.py is superior to
commit-email.pl and I have no idea where you obtained log-commit.py or
how it works.

* I don't know if you can test it without committing to some
type of repository. If you don't want to commit to the repository you
are setting it up for, create a trash repository in your local
directory, set it up, test it, and then replicate the final files into
your desired repository. =P

 

Hope this helps,

A-
Received on Wed May 2 19:32:13 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.