Sheriffbot build fix. Don't emit empty lines on IRC.
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Jan 2012 00:07:32 +0000 (00:07 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Jan 2012 00:07:32 +0000 (00:07 +0000)
* Scripts/webkitpy/tool/bot/irc_command.py:
(LastGreenRevision.execute):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@104760 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/Scripts/webkitpy/tool/bot/irc_command.py

index c9fd332915b58b91a78a5ae5a4f719e207bb92a5..5d258b2598de970fa23b92c3bb607ea37bc68fda 100644 (file)
@@ -1,3 +1,10 @@
+2012-01-11  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Sheriffbot build fix. Don't emit empty lines on IRC.
+
+        * Scripts/webkitpy/tool/bot/irc_command.py:
+        (LastGreenRevision.execute):
+
 2012-01-11  Ryosuke Niwa  <rniwa@webkit.org>
 
         last-green-revision should report the revision that succeeded on all bots
index 0ae60428a750d450953381bdd9b27aabb5a62cd9..4cb2464b7fa2314863dbfdaa9bf3a49a3f352b8e 100644 (file)
@@ -59,7 +59,8 @@ class LastGreenRevision(IRCCommand):
             return "%s: Usage: last-green-revision BUILDER_NAME" % nick
         result = tool.buildbot.last_green_revision(' '.join(args))
         for line in result.split('\n'):
-            tool.irc().post("%s: %s" % (nick, line))
+            if line:
+                tool.irc().post("%s: %s" % (nick, line))
 
 
 class Restart(IRCCommand):