[HELP!] serverside hooks behind bzr+http://

Marius Kruger amanic at gmail.com
Sun Sep 14 12:28:05 BST 2008


2008/9/13 Andrew Bennetts <andrew at canonical.com>

> Marius Kruger wrote:
> > Hi,
> > I'm trying to get hooks called on the server when commits come in over
> > bzr+http://
> > I have tried a lot of things and got it working over bzr://
> >
> > I'm using this fcgi script:
> [...]
> >
> > commits work fine over this, but the hooks does not seem to be called.
>
> Probably all you need to do is add this to your script:
>
> from bzrlib.plugin import load_plugins
> load_plugins()
> -Andrew.
>
> I figured that out thanks, I dont know why but I only received your e-mail
now.

do you think we should get `wsgi.make_app()` to do this automatically?

then we can add additional parameters:
smart_server_app = wsgi.make_app(
    root='/var/lib/gforge/bzrroot',
    prefix='/bzr/',
    path_var='REQUEST_URI',
    readonly=False,
  *  load_plugins=True,
    logfile='/var/log/bazaar.fcgi.log',*
)

note I also want to get the logging working (properly set, or properly
disabled),
because I get a lot of `No handlers could be found for logger "bzr"` in my
apache log.

I'll probably hack a patch together for this soon, if it sounds ok to you.

-- 
regards
Marius

<><
http://amanica.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/bazaar/attachments/20080914/4762d15c/attachment.htm 


More information about the bazaar mailing list