Use minimal environment in Mercurial loader
This generalizes the work done in ef3a2ba7 to (supposedly) all
places invoking Mercurial. In short, this limits the environment to the
smallest subset needed (i.e. $PATH
) and uses the Mercurial-specific
variables to disable user customizations and configs.
Migrated from D5146 (view on Phabricator)