[pypy-svn] buildbot default: put handlers into a list
antocuni
commits-noreply at bitbucket.org
Thu Apr 21 11:40:47 CEST 2011
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch:
Changeset: r491:cf8c0ea0a5e2
Date: 2011-04-21 10:52 +0200
http://bitbucket.org/pypy/buildbot/changeset/cf8c0ea0a5e2/
Log: put handlers into a list
diff --git a/bitbucket_hook/hook.py b/bitbucket_hook/hook.py
--- a/bitbucket_hook/hook.py
+++ b/bitbucket_hook/hook.py
@@ -10,6 +10,10 @@
from . import scm
from . import mail
+HANDLERS = [
+ irc.handle_commit,
+ mail.handle_commit
+ ]
def check_for_local_repo(local_repo):
return local_repo.check(dir=True)
@@ -35,5 +39,5 @@
return
scm.hg('pull', '-R', local_repo)
for commit in get_commits(payload):
- irc.handle_commit(payload, commit, test)
- mail.handle_commit(payload, commit, test)
+ for handler in HANDLERS:
+ handler(payload, commit, test)
More information about the Pypy-commit
mailing list