[Buildbot-commits] buildbot/buildbot/status builder.py, 1.94, 1.95 mail.py, 1.35, 1.36

Brian Warner warner at users.sourceforge.net
Wed Aug 1 20:31:46 UTC 2007


Update of /cvsroot/buildbot/buildbot/buildbot/status
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv23657/buildbot/status

Modified Files:
	builder.py mail.py 
Log Message:
[project @ pass around SourceStamp instances rather than tuples. Closes #70.]

Original author: warner at lothar.com
Date: 2007-07-31 06:25:40+00:00

Index: builder.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/builder.py,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -d -r1.94 -r1.95
--- builder.py	7 Feb 2007 04:25:29 -0000	1.94
+++ builder.py	1 Aug 2007 20:31:43 -0000	1.95
@@ -952,7 +952,7 @@
         return self.builder.getBuild(self.number-1)
 
     def getSourceStamp(self):
-        return (self.source.branch, self.source.revision, self.source.patch)
+        return self.source
 
     def getReason(self):
         return self.reason

Index: mail.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/mail.py,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- mail.py	17 Apr 2007 06:38:51 -0000	1.35
+++ mail.py	1 Aug 2007 20:31:43 -0000	1.36
@@ -240,16 +240,16 @@
         if ss is None:
             source = "unavailable"
         else:
-            branch, revision, patch = ss
             source = ""
-            if branch:
-                source += "[branch %s] " % branch
-            if revision:
-                source += revision
+            if ss.branch:
+                source += "[branch %s] " % ss.branch
+            if ss.revision:
+                source += ss.revision
             else:
                 source += "HEAD"
-            if patch is not None:
+            if ss.patch is not None:
                 source += " (plus patch)"
+                patch = ss.patch
         text += "Build Source Stamp: %s\n" % source
 
         text += "Blamelist: %s\n" % ",".join(build.getResponsibleUsers())





More information about the Commits mailing list