[pypy-svn] buildbot default: put also the slash in gray
antocuni
commits-noreply at bitbucket.org
Fri Jan 21 12:28:17 CET 2011
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch:
Changeset: r442:1486ff3e33dd
Date: 2011-01-21 12:27 +0100
http://bitbucket.org/pypy/buildbot/changeset/1486ff3e33dd/
Log: put also the slash in gray
diff --git a/bitbucket_hook/hook.py b/bitbucket_hook/hook.py
--- a/bitbucket_hook/hook.py
+++ b/bitbucket_hook/hook.py
@@ -149,6 +149,7 @@
files = commit.get('files', [])
common_prefix, filenames = getpaths(files, self.LISTFILES)
pathlen = len(common_prefix) + len(filenames) + 2
+ common_prefix = '/' + common_prefix
if self.USE_COLOR_CODES:
author = '\x0312%s\x0F' % author # in blue
@@ -158,7 +159,7 @@
message = commit['message'].replace('\n', ' ')
fields = (author, branch, node, common_prefix, filenames)
- part1 = '%s %s %s /%s%s: ' % fields
+ part1 = '%s %s %s %s%s: ' % fields
totallen = 160 + pathlen
if len(message) + len(part1) <= totallen:
irc_msg = part1 + message
More information about the Pypy-commit
mailing list