mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
Bug 1410737: Log repositories checked out. r=gps
MozReview-Commit-ID: 7D7i8CMXjMY --HG-- extra : rebase_source : 42c1da8e64bef57a235b9a68f562d6ecb316fbad
This commit is contained in:
parent
5b02c23562
commit
d2b01f13fe
@ -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
|
||||
|
||||
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user