Make Mercurial's behavior predictable for scripts
This change adds two environment variables that have been supported for
10+ years by Mercurial to make its output predictable for use in
scripts. This was already done by a previous patch in tests, but it is
also (even more?) useful here.