preoutgoing vs outgoing hook

Matt Mackall mpm at selenic.com
Mon Oct 17 16:45:02 UTC 2011


On Mon, 2011-10-17 at 09:40 +0200, Angel Ezquerra wrote:
> Hi,
> 
> I am trying to create a hook that prevents pushing changes under
> certain conditions. Looking at the hook documentation it seems that
> the right hook to use is the "preoutgoing" hook.

> However, there is a problem. Apparently the preoutgoing hook is run
> before mercurial knows which changesets are going to be pushed.

Actually, Mercurial does know. It just currently considers the interface
to hooks too narrow a straw to fit the data through. But we could
theoretically put a list of outgoing roots in a var here.

-- 
Mathematics is the supreme nostalgia of our time.





More information about the Mercurial mailing list