Bug 1410737: Log repositories checked out. r=gps

MozReview-Commit-ID: 7D7i8CMXjMY

--HG--
extra : rebase_source : 42c1da8e64bef57a235b9a68f562d6ecb316fbad
This commit is contained in:
Tom Prince 2017-10-26 11:54:55 -06:00
parent 5b02c23562
commit d2b01f13fe
2 changed files with 18 additions and 0 deletions

View File

@ -216,6 +216,15 @@ def vcs_checkout(source_repo, dest, store_path,
cwd=dest)
assert re.match('^[a-f0-9]{40}$', revision)
repo_name = source_repo.split('/')[-1]
print_line(b'vcs', b"TinderboxPrint:<a href={source_repo}/rev/{revision} "
b"title='Built from {repo_name} revision {revision}'>{revision}</a>".format(
revision=revision,
source_repo=source_repo,
repo_name=repo_name,
))
return revision

View File

@ -262,8 +262,17 @@ def mozharness_on_generic_worker(config, job, taskdesc):
hg_command.append(head_repo)
hg_command.append(path)
logging_command = [
b":: TinderboxPrint:<a href={source_repo}/rev/{revision} "
b"title='Built from {repo_name} revision {revision}'>{revision}</a>\n".format(
revision=head_rev,
source_repo=head_repo,
repo_name=head_repo.split('/')[-1],
)]
return [
' '.join(hg_command),
' '.join(logging_command),
]
hg_commands = checkout_repo(