[Buildbot-commits] buildbot/buildbot/status builder.py,1.81,1.82

Brian Warner warner at users.sourceforge.net
Thu Jun 15 05:47:37 UTC 2006


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

Modified Files:
	builder.py 
Log Message:
[project @ prepare for multiple LogFiles, add LogObservers]

Original author: warner at lothar.com
Date: 2006-06-15 01:23:23

Index: builder.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/builder.py,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -d -r1.81 -r1.82
--- builder.py	15 Jun 2006 05:47:14 -0000	1.81
+++ builder.py	15 Jun 2006 05:47:35 -0000	1.82
@@ -207,7 +207,6 @@
 
     finished = False
     length = 0
-    progress = None
     chunkSize = 10*1000
     runLength = 0
     runEntries = [] # provided so old pickled builds will getChunks() ok
@@ -353,9 +352,6 @@
         p.resumeProducing()
 
     # interface used by the build steps to add things to the log
-    def logProgressTo(self, progress, name):
-        self.progress = progress
-        self.progressName = name
 
     def merge(self):
         # merge all .runEntries (which are all of the same type) into a
@@ -391,8 +387,6 @@
         for w in self.watchers:
             w.logChunk(self.step.build, self.step, self, channel, text)
         self.length += len(text)
-        if self.progress:
-            self.progress.setProgress(self.progressName, self.length)
 
     def addStdout(self, text):
         self.addEntry(STDOUT, text)
@@ -416,10 +410,6 @@
         self.finishedWatchers = []
         for w in watchers:
             w.callback(self)
-        if self.progress:
-            self.progress.setProgress(self.progressName, self.length)
-            del self.progress
-            del self.progressName
 
     # persistence stuff
     def __getstate__(self):
@@ -430,9 +420,6 @@
         d['entries'] = [] # let 0.6.4 tolerate the saved log. TODO: really?
         if d.has_key('finished'):
             del d['finished']
-        if d.has_key('progress'):
-            del d['progress']
-            del d['progressName']
         if d.has_key('openfile'):
             del d['openfile']
         return d





More information about the Commits mailing list