[Buildbot-commits] buildbot/buildbot/status client.py,1.22,1.23

Brian Warner warner at users.sourceforge.net
Wed Aug 31 01:12:08 UTC 2005


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

Modified Files:
	client.py 
Log Message:
Revision: arch at buildbot.sf.net--2004/buildbot--dev--0--patch-299
Creator:  Brian Warner <warner at lothar.com>

make jobdir-style 'try' report status properly

	* buildbot/scripts/tryclient.py (Try): make jobdir-style 'try'
	report status properly.
	* buildbot/status/client.py (StatusClientPerspective): add a
	perspective_getBuildSets method for the benefit of jobdir-style
	'try'.
	* docs/buildbot.texinfo (try): more docs
	* buildbot/test/test_scheduler.py (Scheduling.testGetBuildSets):
	new test case


Index: client.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/status/client.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- client.py	18 Aug 2005 08:30:00 -0000	1.22
+++ client.py	31 Aug 2005 01:12:06 -0000	1.23
@@ -413,6 +413,11 @@
         self.subscribed_to.remove(self.status)
         self.client = None
 
+    def perspective_getBuildSets(self):
+        """This returns tuples of (buildset, bsid), because that is much more
+        convenient for tryclient."""
+        return [(IRemote(s), s.getID()) for s in self.status.getBuildSets()]
+
     def perspective_getBuilderNames(self):
         return self.status.getBuilderNames()
 





More information about the Commits mailing list