How to execute commandline application (bat) before mercurial commit?
I would like to execute command line application before each commit (push) to central repository. If application will execute with errors, commit should fail with some message. 

I have found some examples of python hooks, but nothing about calling bats or exe.
How to execute commandline application (bat) before mercurial commit?
===

I would like to execute command line application before each commit (push) to central repository. If application will execute with errors, commit should fail with some message. 

I have found some examples of python hooks, but nothing about calling bats or exe.