From 133243beb9d40673ef42b469d980a614744c34fb Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Sat, 23 Jul 2016 12:22:18 -0400 Subject: [PATCH] Fix accessing revision --- master.cfg | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/master.cfg b/master.cfg index da906fb..e84b98a 100644 --- a/master.cfg +++ b/master.cfg @@ -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)