[Buildbot-commits] buildbot/buildbot interfaces.py,1.41,1.42

Brian Warner warner at users.sourceforge.net
Thu Jun 15 05:46:58 UTC 2006


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

Modified Files:
	interfaces.py 
Log Message:
[project @ move STDOUT/STDERR channel constants to buildbot.interfaces]

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

Index: interfaces.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/interfaces.py,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- interfaces.py	22 May 2006 08:16:25 -0000	1.41
+++ interfaces.py	15 Jun 2006 05:46:56 -0000	1.42
@@ -664,6 +664,10 @@
         0 for stdout, 1 for stderr, 2 for header. (note that stderr is merged
         into stdout if PTYs are in use)."""
 
+LOG_CHANNEL_STDOUT = 0
+LOG_CHANNEL_STDERR = 1
+LOG_CHANNEL_HEADER = 2
+
 class IStatusLogConsumer(Interface):
     """I am an object which can be passed to IStatusLog.subscribeConsumer().
     I represent a target for writing the contents of an IStatusLog. This
@@ -771,7 +775,8 @@
         log finishes."""
 
     def logChunk(build, step, log, channel, text):
-        """Some text has been added to this log. 'channel' is 0, 1, or 2, as
+        """Some text has been added to this log. 'channel' is one of
+        LOG_CHANNEL_STDOUT, LOG_CHANNEL_STDERR, or LOG_CHANNEL_HEADER, as
         defined in IStatusLog.getChunks."""
 
     def logFinished(build, step, log):





More information about the Commits mailing list