plugin hook is not called
John Arbash Meinel
john at arbash-meinel.com
Fri Apr 30 18:18:40 BST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
}--o wrote:
> 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
I don't quite see how you can do "bzr commit bzr+http://". You can only
commit in a local tree. (Unless I misremember something.)
You may want to look at 'post_branch_tip_changed' which also fires for
stuff like push/pull/update etc.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkvbEPAACgkQJdeBCYSNAAN2yACgjgYhLdJvwclhk8zirbjpG9xg
+j0Anj2oBnCKBQ0xqohwP9oIwArew9K+
=7sRG
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list