[RFC] Better hooks for Bazaar

John Arbash Meinel john at arbash-meinel.com
Mon Dec 17 14:02:45 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alexander Belchenko wrote:
> My coworker ask me how to create hook private to some branch/repo?
> 
> 
Can you define private?

At the moment, if you want a hook to only fire for specific branches, you
register the hook, and then when it fires you check the branch.

Like bzr-email does (pseudocode):

config = target_branch.get_config()
post_commit_to = config.get_user_option('post_commit_to')
if post_commit_to is None:
  return


John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHZoGFJdeBCYSNAAMRAsr5AKC5R0+G2ksFeHJixS6WIBuC0p+ZUQCfS0KV
Pw8Mx+Iyb/6hI0/PkkujjIQ=
=J73f
-----END PGP SIGNATURE-----



More information about the bazaar mailing list