Fix accessing revision

This commit is contained in:
Sergio Durigan Junior 2016-07-23 12:22:18 -04:00
parent 9f347c13d7
commit 133243beb9

View file

@ -141,11 +141,11 @@ import smtplib
import socket
from email.mime.text import MIMEText
def SendRootMessageGDBTesters (branch, change, istrysched = False,
def SendRootMessageGDBTesters (branch, change, rev,
istrysched = False,
try_to = None):
global GDB_MAIL_TO, GDB_MAIL_FROM
rev = change.revision
if istrysched:
f = "/tmp/gdb-buildbot-%s-try.lock" % rev
else:
@ -260,7 +260,7 @@ send to the gdb-testers mailing list."""
isrebuild = properties.getProperty ('isRebuild')
# Sending the root message to gdb-testers.
SendRootMessageGDBTesters (branch, cur_change)
SendRootMessageGDBTesters (branch, cur_change, cur_change.revision)
# Subject
subj = "Failures on %s, branch %s" % (name, branch)
@ -419,7 +419,8 @@ send to the gdb-testers mailing list."""
try_to = build.getReason ().strip ("'try' job by user ")
# Sending the root message to gdb-testers.
SendRootMessageGDBTesters (branch, cur_change, istrysched = True, try_to = try_to)
SendRootMessageGDBTesters (branch, cur_change, properties.getProperty ('revision'),
istrysched = True, try_to = try_to)
# Subject
subj = "Try Build on %s, branch %s" % (name, branch)