[RFC] another questions about hooks

John Arbash Meinel john at arbash-meinel.com
Fri Mar 7 16:57:49 GMT 2008


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

Alexander Belchenko wrote:
> First question ;-)
> 
> C:> bzr hooks
> bzr: ERROR: unknown command "hooks"
> 
> Mmm? And how I can examine my set of available hooks?
> 
> 
> And second question.
> 
> pre_commit hook has very lengthy signature:
> (local, master, old_revno, old_revid, future_revno, future_revid,
> tree_delta, future_tree)
> Why not passing special object with such objects as attributes?
> 
> 

It should, but when it was written it didn't and we have to be careful
with compatibility.

In general, new hooks should be like the ones that use a Result object.

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

iD8DBQFH0XQNJdeBCYSNAAMRAv2uAJ9ThPHn2eNFhZo7i7AyAH8xhGC5eACeMfJn
fXgjwnvmOYv5N3y9cNKwUNQ=
=q7iK
-----END PGP SIGNATURE-----



More information about the bazaar mailing list