Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: FENNEC_17_0b2_…
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 30 lines (22 sloc) 0.999 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
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 (http://hg.mozilla.org/%(branch)s/pushloghtml?changeset=%(revision)s). It's the best!

Watch https://tbpl.mozilla.org/?tree=%(tree)s&rev=%(revision)s 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


Something went wrong with that request. Please try again.