Can Mercurial print command success messages instead of no response?
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.
精彩评论