[Buildbot-commits] buildbot/buildbot/status builder.py, 1.105, 1.106

Brian Warner warner at users.sourceforge.net
Tue Mar 18 22:25:58 UTC 2008


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

Modified Files:
	builder.py 
Log Message:
[project @ #71:absolute-sourcestamps.patch]
Allow sourcestamps to be made "absolute" by replacing generic "latest"
sourcestamps with specific revisions.

Original author: dustin at v.igoro.us
Date: 2008-02-17 01:54:44+00:00

Index: builder.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/builder.py,v
retrieving revision 1.105
retrieving revision 1.106
diff -u -d -r1.105 -r1.106
--- builder.py	1 Dec 2007 01:48:58 -0000	1.105
+++ builder.py	18 Mar 2008 22:25:55 -0000	1.106
@@ -945,8 +945,10 @@
             return None
         return self.builder.getBuild(self.number-1)
 
-    def getSourceStamp(self):
-        return self.source
+    def getSourceStamp(self, absolute=False):
+        if not absolute or not self.properties.has_key('got_revision'):
+            return self.source
+        return self.source.getAbsoluteSourceStamp(self.properties['got_revision'])
 
     def getReason(self):
         return self.reason





More information about the Commits mailing list