My DS210+ hosts some svn repos. CLients use ssh+svn for access.
I want to get commit-mail running.
Packages installed (amongst others):
- Code: Select all
ipkg install python # version 2.5-1
ipkg install svn # version 1.6.15-1
ipkg install svn-py # version 1.6.15-1
ipkg install py26-trac # version 1.12.1-1 - yes, also running tracd :D
python mail script: http://svn.apache.org/repos/asf/subvers ... /mailer.py
with config http://svn.apache.org/repos/asf/subvers ... nf.example modified to my wishes.
File <repo-path>/hooks/post-commit:
- Code: Select all
#!/bin/sh
REPOS="$1"
REV="$2"
export PYTHONPATH=/opt/lib/svn-python
/home/svnsw/bin/mailer.py commit "$REPOS" "$REV" /home/svnsw/bin/mailer.conf
Note: I modified to full paths, and added PYTHONPATH, otherwise python fails to load the svn bindings.
Test the mailer from the command line results in a python stack dump:
- Code: Select all
> ./post-commit /home/svnsw/sw/zz_try_app/svnroot 5
Traceback (most recent call last):
File "/home/svnsw/bin/mailer.py", line 1436, in <module>
sys.argv[3:3+expected_args])
File "/opt/lib/svn-python/svn/core.py", line 281, in run_app
return func(application_pool, *args, **kw)
File "/home/svnsw/bin/mailer.py", line 101, in main
repos = Repository(repos_dir, revision, pool)
File "/home/svnsw/bin/mailer.py", line 1122, in __init__
self.root_this = self.get_root(rev)
File "/home/svnsw/bin/mailer.py", line 1136, in get_root
root = self.roots[rev] = svn.fs.revision_root(self.fs_ptr, rev, self.pool)
File "/opt/lib/svn-python/libsvn/fs.py", line 244, in svn_fs_revision_root
return apply(_fs.svn_fs_revision_root, args)
TypeError: argument number 2:
I am stuck...
Can this be caused by a mistake in the mailer.conf file?
Some version incompatibility of installed packages?
Any suggestion how to fix this?
Thanks for any help, Bram.

