Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: beanbot-client.py

Issue 8483004: abpbot: Send each commit's branch to IRC (Closed)
Patch Set: Created Oct. 2, 2012, 10:57 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: beanbot-client.py
===================================================================
--- a/beanbot-client.py
+++ b/beanbot-client.py
@@ -13,14 +13,15 @@
IRC_LIME = '\x039'
IRC_BLUE = '\x0312'
- repo, author, rev, description = sys.argv[1:5]
+ repo, branch, author, rev, description = sys.argv[1:6]
match = re.search(r'^\s*(.*?)\s*<.*>\s*$', author)
if match:
author = match.group(1)
data = (
- "%(IRC_RED)s%(repo)s "
+ "%(IRC_RED)s%(repo)s"
+ "%(IRC_NORMAL)[%(branch)s] "
"%(IRC_NORMAL)s%(IRC_BOLD)s%(author)s "
"%(IRC_NORMAL)s%(IRC_ULINE)s%(rev)s%(IRC_NORMAL)s "
"%(description)s" % locals()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld