示例#1
0
    def get_update_email_contents(self):
        """See AbstractUpdate.get_update_email_contents."""
        subject = '[%s] Created tag %s' % (self.email_info.project_name,
                                           self.human_readable_tag_name())

        tag_info = parse_tag_object(self.ref_name)
        # Augment tag_info with some of other elements that will be
        # provided in the mail body.  This is just to make it easier
        # to format the message body...
        tag_info['tag_kind'] = 'signed' if tag_info['signed_p'] else 'unsigned'
        tag_info['tag_name'] = self.human_readable_tag_name()
        tag_info['commit_oneline'] = commit_oneline(self.new_rev)

        body = ATAG_CREATION_EMAIL_BODY_TEMPLATE % tag_info
        if tag_summary_of_changes_needed(self.new_commits_for_ref,
                                         self.lost_commits):
            body += self.summary_of_changes()

        return (self.everyone_emails(), subject, body)
    def get_update_email_contents(self):
        """See AbstractUpdate.get_update_email_contents."""
        subject = '[%s] Created tag %s' % (self.email_info.project_name,
                                           self.short_ref_name)

        tag_info = parse_tag_object(self.short_ref_name)
        # Augment tag_info with some of other elements that will be
        # provided in the mail body.  This is just to make it easier
        # to format the message body...
        tag_info['tag_kind'] = 'signed' if tag_info['signed_p'] else 'unsigned'
        tag_info['short_ref_name'] = self.short_ref_name
        tag_info['commit_oneline'] = commit_oneline(self.new_rev)

        body = ATAG_CREATION_EMAIL_BODY_TEMPLATE % tag_info
        if tag_summary_of_changes_needed(self.added_commits,
                                         self.lost_commits):
            body += self.summary_of_changes()

        return (self.everyone_emails(), subject, body)
示例#3
0
    def get_update_email_contents(self):
        """See AbstractUpdate.get_update_email_contents."""
        subject = "[%s] Updated tag %s" % (
            self.email_info.project_name,
            self.human_readable_tag_name(),
        )

        tag_info = parse_tag_object(self.ref_name)
        # Augment tag_info with some of other elements that will be
        # provided in the mail body.  This is just to make it easier
        # to format the message body...
        tag_info["tag_kind"] = "signed" if tag_info["signed_p"] else "unsigned"
        tag_info["tag_name"] = self.human_readable_tag_name()
        tag_info["commit_oneline"] = commit_oneline(self.new_rev)
        tag_info["old_commit_oneline"] = commit_oneline(self.old_rev)

        body = ATAG_UPDATE_EMAIL_BODY_TEMPLATE % tag_info
        if tag_summary_of_changes_needed(self.new_commits_for_ref,
                                         self.lost_commits):
            body += self.summary_of_changes()

        return (self.everyone_emails(), subject, body)