Preupdate hook

Peter Kronenberg pakronenberg at gmail.com
Mon Jul 18 22:33:02 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-devel/attachments/20160718/e364bce7/attachment.html>


More information about the Mercurial-devel mailing list