开发者

Can Mercurial print command success messages instead of no response?

开发者 https://www.devze.com 2022-12-31 12:08 出处:网络
Can Mercurial print command success messages instead of no response in the output 开发者_开发问答prompt?It returns a value, hence you can wrap it around a script.you could writepost-<command>hoo

Can Mercurial print command success messages instead of no response in the output 开发者_开发问答prompt?


It returns a value, hence you can wrap it around a script.


you could writepost-<command>hooks to output whatever you want on succesful commands. I don't see what the benefit would be however.

the book has a tutorial on hooks doing almost exactly what you want but with commit . note with a post-command hook you shouldn't need to check the result for success as the hook will only be run if the command was successful.

0

精彩评论

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