Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

Commit

Permalink
Bug 671450 - Try different sources for revision in log_uploader - r=n…
Browse files Browse the repository at this point in the history
…thomas
  • Loading branch information
ccooper committed Dec 2, 2011
1 parent e6d779a commit 02546e2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bin/log_uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,17 @@ def formatLog(tmpdir, build, builder_suffix=''):
uploadArgs['to_shadow'] = False
uploadArgs['to_tinderbox_dated'] = True

props = build.getProperties()
if props.getProperty('got_revision') is not None:
revision=props['got_revision']
elif props.getProperty('revision') is not None:
revision=props['revision']
else:
revision=None
uploadArgs.update(dict(
to_try=False,
who=None,
revision=None,
revision=revision,
buildid=buildid,
))
post_upload_cmd = postUploadCmdPrefix(**uploadArgs)
Expand Down

0 comments on commit 02546e2

Please sign in to comment.