[RFC] Better hooks for Bazaar

John Arbash Meinel john at arbash-meinel.com
Mon Dec 17 13:55:06 GMT 2007


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

Alexander Belchenko wrote:
> Ian Clatworthy пишет:
>> We're had a few complaints that hooks in Bazaar are too hard to get
>> going compared to other systems. While I'm looking into fixing that, I
>> thought I'd ask for advice/recommendations on how hooks in general ought
>> to be improved in Bazaar.
>>
>> In case anyone is interested, I've put together some notes covering what
>> hooks are supported by bzr, svn, git and hg, together with how to
>> configure them in the various systems: http://bazaar-vcs.org/BzrHooks.
>> There's more variation than I expected FWIW.
>>
>> Some questions:
>>
>> * If you're using hooks in Bazaar, how would you like to have configured
>>   them compared to how you had to?
>>
>> * Did you prefer hooks in other systems and why? Was it the available
>>   hooks, how they were configured or both?
>>
>> * Any other ideas/thoughts?
> 
> I need pre-pre-commit hooks that will allows me modify source files.
> Currently pre-commit hooks required to treat files as immutable beings.
> 
> 

Well, you can wrap the "bzr commit" command to trigger some other action. So we
may want more information here...

How much work do you want us to have done before this is activated.

What data would you like to pass in? There are people who would like $Keyword$
expansion. But you can't put the revision id into the files until we know what
revision id we are going to use. I suppose at least we have the possibility of
doing it. Hash based systems have no way to give you anything until after the
commit has finished.

Then again, it is usually recommended that for files you should strip the
$Keyword$ when reading the files, and only fill in the values when writing out
the files. But that means that every file on disk is actually modified from
what is in the repository...

John
=:->

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

iD8DBQFHZn+5JdeBCYSNAAMRAhBlAJ9X9gMmCfg/GTDb7efLVsZcLtk2TgCeMSti
7J7V0dzlxIj6ckNm128Iu50=
=5gnf
-----END PGP SIGNATURE-----



More information about the bazaar mailing list