[pypy-svn] buildbot default: don't send newlines to irc
antocuni
commits-noreply at bitbucket.org
Fri Jan 7 18:00:38 CET 2011
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch:
Changeset: r399:e17583fbfa5c
Date: 2011-01-07 17:42 +0100
http://bitbucket.org/pypy/buildbot/changeset/e17583fbfa5c/
Log: don't send newlines to irc
diff --git a/bitbucket_hook/hook.py b/bitbucket_hook/hook.py
--- a/bitbucket_hook/hook.py
+++ b/bitbucket_hook/hook.py
@@ -85,7 +85,7 @@
commits = sorted(self.payload['commits'],
key=operator.itemgetter('revision'))
for commit in commits:
- message = commit['message']
+ message = commit['message'].replace('\n', ' ')
part1 = '%s %s: ' % (commit['author'], commit['node'])
if len(message) + len(part1) <= 160:
irc_msg = part1 + message
More information about the Pypy-commit
mailing list