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

Unified Diff: Tools/Scripts/webkitpy/tool/bot/commitannouncer.py

Issue 145103003: IRC commit-bot: Make svn revision appear in the beginning of bot message. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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
« no previous file with comments | « no previous file | Tools/Scripts/webkitpy/tool/bot/commitannouncer_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/Scripts/webkitpy/tool/bot/commitannouncer.py
diff --git a/Tools/Scripts/webkitpy/tool/bot/commitannouncer.py b/Tools/Scripts/webkitpy/tool/bot/commitannouncer.py
index 8430308eb31ac10f5207cd7cfff375ecfa72d685..3376429af9777f86df1bebb4850548ffa9c2bba8 100644
--- a/Tools/Scripts/webkitpy/tool/bot/commitannouncer.py
+++ b/Tools/Scripts/webkitpy/tool/bot/commitannouncer.py
@@ -177,9 +177,9 @@ class CommitAnnouncer(SingleServerIRCBot):
review_url = 'http://crrev.com/%s' % match.group('review_id')
first_url = review_url if review_url else 'https://chromium.googlesource.com/chromium/blink/+/%s' % commit[:8]
- red_flag_message = ' \x037%s\x03' % (' '.join(red_flags)) if red_flags else ''
+ red_flag_message = '\x037%s\x03' % (' '.join(red_flags)) if red_flags else ''
- return '%s committed "%s" %s %s%s' % (email, subject, first_url, svn_revision, red_flag_message)
+ return ('%s %s %s committed "%s" %s' % (svn_revision, first_url, email, subject, red_flag_message)).strip()
def _post(self, message):
self.connection.execute_delayed(0, lambda: self.connection.privmsg(channel, self._sanitize_string(message)))
« no previous file with comments | « no previous file | Tools/Scripts/webkitpy/tool/bot/commitannouncer_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698