subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Pounsett <>
Subject Difficulty with post-commit emails
Date Mon, 09 Jul 2012 18:43:40 GMT

Apologies if this is handled on the list recently, but I haven't had any luck googling an
answer.. don't see anything in the manual either.

Although I've done lots of upgrades, it's been a while since I installed a new subversion
server completely from scratch, so I'm just now running into the fact that
has been deprecated.  commit-email.rb has no useful documentation .. not even a basic usage
summary.. so I'm trying to get working.  I've run into an error I can't explain
though, and I'm hoping someone has a pointer for me.

This is using subversion 1.7.5 and the and python bindings that come with it, both
installed out of ports on a FreeBSD box.

My mailer.conf file is present in the same directory as, and is pretty much the
default with the addition of a catch-all group at the end of the file:

> diff mailer.conf.example mailer.conf
< #smtp_hostname = localhost
> smtp_hostname = localhost
> [catchall]
> for_repos = /var/svn/repos/(?P<repo>[^/]*)
> to_addr   = commit-%(repo)
> from_addr =

I'm working with a test repository:
> ls /var/svn/repos/svn-test/
README.txt conf       dav        db         format     hooks      locks

Subversion is running as an Apache module, so I'm expecting mailer to be run by the www user.
 I get the following error:
> sudo -u www ./ commit svn-test 10
Traceback (most recent call last):
  File "./", line 1435, in <module>
  File "/usr/local/lib/python2.7/site-packages/svn/", line 307, in run_app
    return func(application_pool, *args, **kw)
  File "./", line 100, in main
    repos = Repository(repos_dir, revision, pool)
  File "./", line 1116, in __init__
    self.repos_ptr =, pool)
  File "/usr/local/lib/python2.7/site-packages/libsvn/", line 212, in svn_repos_open
    return _repos.svn_repos_open(*args)
svn.core.SubversionException: 2 - Can't open file 'svn-test/format': No such file or directory

The file svn-test/format is clearly present.  This isn't just environment.. I get the same
error passed back when is run by a post-commit script.  Is there something else
here I'm missing?

View raw message