Create mercurial pre-merge hook

Mar 29, 2013 at 5:15 PM
Hi,

i try to create a mercurial pre-merge hook. The goal is to write the merge comment in a file and increase a version number for each merge command.

so, i am using MercurialPreCommandHook myHook = new MercurialPreCommandHook(); in a console application but it crashes during the merging action.

Is it the right way to do?

If you have an example of pre-command hook, can you please send it to me.

Thanks.

Julien