Watch my new commit...
Filed Under:
Get notification as soon as somebody commit is really important! A quick note to set it up with emails... We will make this in 4 steps. Step 1: Installing pysvnCheck that you don't have it yet:$ python2.4If you get something else (e.g ImportError: No module named svn) you will need to do this step: You will need the python library to access subversion: pysvn. Note that header of the libsvn are required [should come with your subversion install]! Go to http://pysvn.tigris.org/project_downloads.html and fetch last tarball (MacOSX version also available). Note that pysvn is noted there as "Extension". I fetched last stable version: http://pysvn.tigris.org/files/documents/1233/34994/pysvn-1.5.0.tar.gz $ tar xvzf pysvn-1.5.0.tar.gzNow try again and you should get something like: $ python2.4 Step 2: Installing SVNMailerGo to http://storage.perlig.de/svnmailer/ and fetch last tarball (stable actual one is: http://storage.perlig.de/svnmailer/svnmailer-1.0.8.tar.gz) Fallow these steps: $ tar xvzf svnmailer-1.0.8.tar.gz You have now a brand new svnmailer installed. Check it with: $ ls -l /usr/bin/svnmailer 3) Configure your repository to use svnmailerWe created a svn repository: $ svnadmin create /var/svn/repos1So we have a repository on our local filesystem in /var/svn/repos1 Go into the hooks directory: $ cd /var/svn/repos1/hooksAdd/edit post-commit file. And add the fallowing lines: #!/bin/shChange execute permission on post-commit chmod 755 post-commitIt's time to configure SVNMailer 4) Configure SVNMailerEdit/Add the file /etc/svn-mailer.conf And add the fallowing lines [you might edit few things...]. Imagine that I have mymodule in my repository (so that i can do svn co file:///var/svn/repos1/mymodule) [general]Here it is... Try to commit and you should get email... If you want to traceback error, go to edit /var/svn/repos1/hooks/post-commit and for example log to a file by changing the line /usr/bin/svn-mailer commit "$REPOS" "$REV" /etc/svn-mailer.confIn /usr/bin/svn-mailer commit "$REPOS" "$REV" /etc/svn-mailer.conf 2> 1> /tmp/svnmailer.logHope this helps ... |
your web page background makes it hard to read the text
Posted by
Anonymous User
at
2009-09-20 08:27
Your image background gets in the way of trying to read your useful blog entries.
I would like to use the same with smtp.gmail.com as my smtp server.
Please help me in setting up with above...
Thanks..