Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(300)

Unified Diff: third_party/buildbot_7_12/buildbot/clients/sendchange.py

Issue 12207158: Bye bye buildbot 0.7.12. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/buildbot_7_12/buildbot/clients/sendchange.py
diff --git a/third_party/buildbot_7_12/buildbot/clients/sendchange.py b/third_party/buildbot_7_12/buildbot/clients/sendchange.py
deleted file mode 100644
index a94284c041f655586a71d55867b21faa2f2328fe..0000000000000000000000000000000000000000
--- a/third_party/buildbot_7_12/buildbot/clients/sendchange.py
+++ /dev/null
@@ -1,50 +0,0 @@
-
-from twisted.spread import pb
-from twisted.cred import credentials
-from twisted.internet import reactor
-
-class Sender:
- def __init__(self, master, user=None):
- self.user = user
- self.host, self.port = master.split(":")
- self.port = int(self.port)
- self.num_changes = 0
-
- def send(self, branch, revision, comments, files, user=None, category=None,
- when=None, properties={}):
- if user is None:
- user = self.user
- change = {'who': user, 'files': files, 'comments': comments,
- 'branch': branch, 'revision': revision, 'category': category,
- 'when': when, 'properties': properties}
- self.num_changes += 1
-
- f = pb.PBClientFactory()
- d = f.login(credentials.UsernamePassword("change", "changepw"))
- reactor.connectTCP(self.host, self.port, f)
- d.addCallback(self.addChange, change)
- return d
-
- def addChange(self, remote, change):
- d = remote.callRemote('addChange', change)
- d.addCallback(lambda res: remote.broker.transport.loseConnection())
- return d
-
- def printSuccess(self, res):
- if self.num_changes > 1:
- print "%d changes sent successfully" % self.num_changes
- elif self.num_changes == 1:
- print "change sent successfully"
- else:
- print "no changes to send"
-
- def printFailure(self, why):
- print "change(s) NOT sent, something went wrong:"
- print why
-
- def stop(self, res):
- reactor.stop()
- return res
-
- def run(self):
- reactor.run()
« no previous file with comments | « third_party/buildbot_7_12/buildbot/clients/gtkPanes.py ('k') | third_party/buildbot_7_12/buildbot/config.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698