Bug 1379382 - Correct rust srcdir url. r?gps
We were prefix-matching the rust srcdir when hyperlinking
symbols, but then appending the relative source path to
the top level repo url, resulting in broken links.
Instead, link to the srcdir url at github.
MozReview-Commit-ID: 33tSMM96Vie
--- a/toolkit/crashreporter/tools/symbolstore.py
+++ b/toolkit/crashreporter/tools/symbolstore.py
@@ -402,17 +402,17 @@ class Dumper:
elif target_os == 'Darwin':
rust_srcdir = '/Users/travis/build/rust-lang/rust/src/'
elif target_os == 'Linux':
rust_srcdir = '/checkout/src/'
if rust_srcdir is not None:
self.srcdirs.append(rust_srcdir)
Dumper.srcdirRepoInfo[rust_srcdir] = GitRepoInfo(rust_srcdir,
buildconfig.substs['RUSTC_COMMIT'],
- 'https://github.com/rust-lang/rust/')
+ 'https://github.com/rust-lang/rust/src/')
def parse_repo_manifest(self, repo_manifest):
"""
Parse an XML manifest of repository info as produced
by the `repo manifest -r` command.
"""
doc = parse(repo_manifest)
if doc.firstChild.tagName != "manifest":