Preupdate hook

Peter Kronenberg pakronenberg at gmail.com
Mon Jul 18 22:31:25 UTC 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.

thanks
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial/attachments/20160718/b24440be/attachment.html>


More information about the Mercurial mailing list