[Buildbot-commits] buildbot ChangeLog,1.773,1.774 NEWS,1.59,1.60
Brian Warner
warner at users.sourceforge.net
Sun Nov 19 20:22:22 UTC 2006
Update of /cvsroot/buildbot/buildbot
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv8523
Modified Files:
ChangeLog NEWS
Log Message:
[project @ more NEWS items]
Original author: warner at lothar.com
Date: 2006-11-19 20:21:47
Index: ChangeLog
===================================================================
RCS file: /cvsroot/buildbot/buildbot/ChangeLog,v
retrieving revision 1.773
retrieving revision 1.774
diff -u -d -r1.773 -r1.774
--- ChangeLog 19 Nov 2006 06:46:33 -0000 1.773
+++ ChangeLog 19 Nov 2006 20:22:20 -0000 1.774
@@ -1,3 +1,7 @@
+2006-11-19 Brian Warner <warner at lothar.com>
+
+ * NEWS (IStatusLog.readlines): more news items
+
2006-11-18 Brian Warner <warner at lothar.com>
* NEWS: start collecting items for the next release.
Index: NEWS
===================================================================
RCS file: /cvsroot/buildbot/buildbot/NEWS,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -d -r1.59 -r1.60
--- NEWS 19 Nov 2006 06:46:33 -0000 1.59
+++ NEWS 19 Nov 2006 20:22:20 -0000 1.60
@@ -62,6 +62,28 @@
whatever reason, you cannot add a post-commit hook script to the repository.
This obsoletes the external contrib/svn_watcher.py script.
+** notes for plugin developers
+
+*** IStatusLog.readlines()
+
+This new method makes it easier for a status plugin (or a
+BuildStep.createSummary method) to walk through a StatusLog one line at a
+time. For example, if you wanted to create an extra logfile that just
+contained all the GCC warnings from the main log, you could use the
+following:
+
+ def createSummary(self, log):
+ warnings = []
+ for line in log.readlines():
+ if "warning:" in line:
+ warnings.append()
+ self.addCompleteLog('warnings', "".join(warnings))
+
+The "BuildStep LogFiles" section of the user's manual contains more
+information. This method is not particularly memory-efficient yet (it reads
+the whole logfile into memory first, then splits it into lines); this will be
+improved in a future release.
+
** bug fixes
*** Update source.SVN to work with the new SVN-1.4.0
More information about the Commits
mailing list