Preupdate hook

Peter Kronenberg pakronenberg at
Mon Jul 18 18:33:02 EDT 2016

I've written a preupdate hook to disallow 'backward' merges.  The problem
I'm having is that it is also called for grafts and I don't want to
disallow grafts.  Is there a way I can tell in the hook which command
initiated it?
I also tried looking for the .hg/graftstate file, but that seems to be
created only after the preupdate hook is called.

Any help would be appreciated.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Mercurial-devel mailing list