开发者

How do I get Bzr to run an arbitrary command on commit

开发者 https://www.devze.com 2022-12-09 07:40 出处:网络
I need the ability to run an arbitrary command when I try and commit to a bazaar branc开发者_JAVA技巧h.

I need the ability to run an arbitrary command when I try and commit to a bazaar branc开发者_JAVA技巧h.

This command should return 0 on success, or any other code on failure, and if the command fails, bzr should refuse to commit.

I want to do this for running test suites mainly, however, there are also other things (for example, checking whether there is a freeze on the branch that is trying to be committed, etc etc) that I'd like to be able to do


You need to write a pre_commit hook, check for example:

http://schettino72.wordpress.com/category/testing/

0

精彩评论

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