Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (22 sloc) 999 Bytes
import re
import os.path
def buildTryChangeMessage(change, packageDir):
got_revision = revision = change.revision[:12]
who = change.who
branch = change.branch
tree = "Try"
if 'comm' in branch:
tree = "Thunderbird-Try"
packageDir = packageDir % locals()
msgdict = {"type": "plain"}
msgdict['subject'] = "%(tree)s submission %(revision)s" % locals()
msgdict['headers'] = {"In-Reply-To": "<%(branch)s-%(revision)s>" % locals(),
"References": "<%(branch)s-%(revision)s>" % locals(),
msgdict["body"] = """\
Thanks for your try submission ( It's the best!
Watch for your results to come in.
Builds and logs will be available at %(packageDir)s.
This directory won't be created until the first builds are uploaded, so please be patient.
""" % locals()
return msgdict
Jump to Line
Something went wrong with that request. Please try again.