[RFC] Changing the generate_commit_message_template and commit_message_template hook APIs
John Arbash Meinel
john at arbash-meinel.com
Mon Sep 14 04:51:33 BST 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Robert Collins wrote:
> On Sun, 2009-09-13 at 12:22 -0500, John Arbash Meinel wrote:
>
>> They run commit in a subprocess to make sure that the main thread stays
>> responsive. They could probably run it in a thread, but a subprocess is
>> a little bit more isolated.
>
> A subprocess could still callback across a process divide (e.g. via
> multiprocessing, bzr-xmlrpc, or something hand brewed).
>
>> As for the rest, I think Gary mentioned that they want to populate their
>> editor *before* they start commit, not in the middle. This is also the
>> time where people would be doing file selection, etc. So they want to
>> know what they are going to do early rather than late.
>
> I understand the specific request but *not the motivation*.
>
> If QBzr is a commit message editor, it should play nice with template
> altering plugins, which means letting them see *the commit* - and that
> means that the inventory should be in the repository so accurate
> non-racy data can be obtained.
>
> -Rob
Except I don't think we let you alter what files are committed at the
time you get the commit message.
As I recall, we wanted to get the message as late as possible to avoid
typing a message and have the commit fail.
I could be wrong, but certainly the "get a message" api, doesn't have
any "and include/exclude these files" as part of the api. (pre-commit
versus start-commit, for example.)
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEUEARECAAYFAkqtvcUACgkQJdeBCYSNAAPfYwCYwuKKC5SC+H5Mib4m1ll/eGhY
uACeOXNm5HqMredvVfuJ4hAQSPiPpfQ=
=w7Gr
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list