Using mailer.py fetched from: 
http://svn.apache.org/repos/asf/subversion/trunk/tools/hook-scripts/mailer/

Running:

> root@svn:/home/svn/agsync/hooks# ./mailer.py commit /home/svn/agsync/ 8160 
> ../conf/mailer.conf 
> Traceback (most recent call last):
>   File "./mailer.py", line 1444, in <module>
>     sys.argv[3:3+expected_args])
>   File "/usr/lib/python2.7/dist-packages/svn/core.py", line 281, in run_app
>     return func(application_pool, *args, **kw)
>   File "./mailer.py", line 102, in main
>     {'author': author,
> UnboundLocalError: local variable 'author' referenced before assignment


Fix:

~ Line 102:

>   if cmd == 'commit':
>     revision = int(cmd_args[0])
>     repos = Repository(repos_dir, revision, pool)
>     cfg = Config(config_fname, repos,
>                  {'author': repos.author,
>                   'repos_basename': os.path.basename(repos.repos_dir)
>                  })
>     messenger = Commit(pool, cfg, repos)   

Use repos.author instead of just 'author'.

-nick

--
Peelman, Nick
n...@peelman.us




Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to