Advantages of in-process hooks

Gilles Moris gilles.moris at free.fr
Thu Nov 4 07:31:09 UTC 2010


On Wednesday 03 November 2010 04:56:01 pm Stephen Rasku wrote:
> Just curious:  What's the advantage of using in-process hooks over external
> hooks?

I think the main advantage is to get access to the Mercurial API in case the 
CLI is not sufficient. But this expose you more to the API change, when the 
CLI is much more stable over time.
Another argument might be better performance of in-process hooks, in 
particular if you are chaining multiple commands. But I never run into the 
case this was really needed.

Regards.
Gilles.



More information about the Mercurial mailing list