plugin hook is not called

}--o viktor.nagy at gmail.com
Fri Apr 30 18:10:21 BST 2010


Hi,

I have the following code

def run_manager(params):
    print 'hook called'
    manager = _manager.Manager(params)
    manager.run()

Branch.hooks.install_named_hook('post_commit', run_manager, 'Saves commit in
django')
print Branch.hooks

I call
$ bzr commit bzr+http://...

Branch.hooks is printed, and it shows the post_commit hook to be registered,
but the run_manager method is not called

I am sure to miss something very obvious, could someone point out what I
didn't get?

thanks,
Viktor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/bazaar/attachments/20100430/ce144b78/attachment.htm 


More information about the bazaar mailing list