[PATCH 1 of 4 RFC] hook: have a generic hook for transaction opening

Pierre-Yves David pierre-yves.david at ens-lyon.org
Wed Mar 11 17:48:56 CDT 2015



On 03/11/2015 03:31 PM, Matt Mackall wrote:
> On Tue, 2015-03-10 at 01:07 -0700, Pierre-Yves David wrote:
>> # HG changeset patch
>> # User Pierre-Yves David <pierre-yves.david at fb.com>
>> # Date 1418264389 28800
>> #      Wed Dec 10 18:19:49 2014 -0800
>> # Node ID 82dea52f27319896a8d33a0b805f439107a94845
>> # Parent  4ef4e3c3c00693868ba428e21ac092e559e4fcea
>> hook: have a generic hook for transaction opening
>>
>> We are adding generic hooking for all transaction. We do not really have any
>> useful information to including when opening the transaction but this is a
>> useful time to allow hook anywa
>
> I'm inclined to hold off on this until we identify a user.

okay

> (As aborting a transaction at pretxnclose time should be equivalent to
> never starting it, it shouldn't be essential strictly speaking.)

It is equivalent if you disregard the 5 minutes spent processing this 
transaction ;-)

If you want to disallow any explicit bookmark movement by user X, you 
could use this hook.

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list