Redirect hook stdout, stderr to Output log
Created originally on Bitbucket by Anonymous
I use different kind of hook scripts (e.g. precommit) that write diagnostics info to stdout or stdout.
When I use hg cli these messages appear. It would be nice to see these messages in the thg Output log too.