Bug 1270317 - Record hg version and install info; r=jlund
hgtool printed the hg version info when running. This is useful data
when debugging Mercurial failures. Add it back in.
We also add `hg debuginstall`, which prints useful bits about the
install, including the Python path and version.
MozReview-Commit-ID: IeKhfWDXEys
--- a/testing/mozharness/mozharness/base/vcs/mercurial.py
+++ b/testing/mozharness/mozharness/base/vcs/mercurial.py
@@ -359,16 +359,20 @@ class MercurialVCS(ScriptMixin, LogMixin
# only have 1 local copy of logical repo stores.
if not share_base:
raise VCSException('vcs share base not defined; '
'refusing to operate sub-optimally')
if not self.robustcheckout_path:
raise VCSException('could not find the robustcheckout Mercurial extension')
+ # Log HG version and install info to aid debugging.
+ self.run_command(self.hg + ['--version'])
+ self.run_command(self.hg + ['debuginstall'])
+
args = self.hg + [
'--config', 'extensions.robustcheckout=%s' % self.robustcheckout_path,
'robustcheckout', repo_url, dest, '--sharebase', share_base,
]
if purge:
args.append('--purge')
if upstream:
args.extend(['--upstream', upstream])