[Buildbot-commits] buildbot/contrib darcs_buildbot.py,1.3,1.4
Brian Warner
warner at users.sourceforge.net
Sat Jan 20 10:18:51 UTC 2007
Update of /cvsroot/buildbot/buildbot/contrib
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv12532/contrib
Modified Files:
darcs_buildbot.py
Log Message:
[project @ darcs_buildbot.py: tidy up the progress messages]
Original author: warner at lothar.com
Date: 2007-01-20 10:18:08
Index: darcs_buildbot.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/contrib/darcs_buildbot.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- darcs_buildbot.py 18 Jan 2007 01:24:10 -0000 1.3
+++ darcs_buildbot.py 20 Jan 2007 10:18:49 -0000 1.4
@@ -121,15 +121,25 @@
changes = findNewChanges()
s = sendchange.Sender(MASTER, None)
+
d = defer.Deferred()
reactor.callLater(0, d.callback, None)
+
+if not changes:
+ print "darcs_buildbot.py: weird, no changes to send"
+elif len(changes) == 1:
+ print "sending 1 change to buildmaster:"
+else:
+ print "sending %d changes to buildmaster:" % len(changes)
+
def _send(res, c):
branch = None
- print "sending", c['revision'], "to buildbot"
+ print " %s" % c['revision']
return s.send(branch, c['revision'], c['comments'], c['files'],
c['username'])
for c in changes:
d.addCallback(_send, c)
+
d.addCallbacks(s.printSuccess, s.printFailure)
d.addBoth(s.stop)
s.run()
More information about the Commits
mailing list