<div dir="ltr"><div>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?<br>I also tried looking for the .hg/graftstate file, but that seems to be created only after the preupdate hook is called.<br><br>Any help would be appreciated.<br><br>thanks<br></div>Peter<br></div>