开发者

How to execute commandline application (bat) before mercurial commit?

开发者 https://www.devze.com 2023-04-09 12:28 出处:网络
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 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 exampl开发者_开发百科es of python hooks, but nothing about calling bats or exe.


You just put the exe/batch file as the command for the hook (you probably dont need the bat and exe extensions):

[hooks]
pre-commit.example1 = /path/to/somebatfile.bat
pre-commit.example2 = /path/to/someexefile.exe
0

精彩评论

暂无评论...
验证码 换一张
取 消