Bug 1166355 - HTML formatter generates correct link for the gecko revision to hg.mozilla.org r=jgraham
authorAsfiya <asfiyab95@gmail.com>
Tue, 26 Feb 2019 14:00:56 +0000
changeset 519040 8963bca25d1a8bc1c517c27aa6ef94d752bcae25
parent 519039 cb9df1982b8a0cd8f53adf46580e7a79af654af0
child 519041 a0a1b81e85b2223bdecc3362b2ad3a45158d0d37
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgraham
bugs1166355
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1166355 - HTML formatter generates correct link for the gecko revision to hg.mozilla.org r=jgraham The HTML formatter now references the correct link and does not produce a 404 error Differential Revision: https://phabricator.services.mozilla.com/D21207
testing/mozbase/mozlog/mozlog/formatters/html/html.py
--- a/testing/mozbase/mozlog/mozlog/formatters/html/html.py
+++ b/testing/mozbase/mozlog/mozlog/formatters/html/html.py
@@ -71,18 +71,18 @@ class HTMLFormatter(base.BaseFormatter):
             self.env["Gecko version"] = version_info.get("application_version")
             self.env["Gecko build"] = version_info.get("application_buildid")
 
             if version_info.get("application_changeset"):
                 self.env["Gecko revision"] = version_info.get("application_changeset")
                 if version_info.get("application_repository"):
                     self.env["Gecko revision"] = html.a(
                         version_info.get("application_changeset"),
-                        href="/".join([version_info.get("application_repository"),
-                                       version_info.get("application_changeset")]),
+                        href="/rev/".join([version_info.get("application_repository"),
+                                           version_info.get("application_changeset")]),
                         target="_blank")
 
             if version_info.get("gaia_changeset"):
                 self.env["Gaia revision"] = html.a(
                     version_info.get("gaia_changeset")[:12],
                     href="https://github.com/mozilla-b2g/gaia/commit/%s" % version_info.get(
                         "gaia_changeset"),
                     target="_blank")