diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-07 11:21:11 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-07 11:21:11 +0200 |
commit | 2cf6c8816a73e0132bd8fa3b509d62d7c51b6e47 (patch) | |
tree | 988e8c5b116dd0466244ae2fe5af8ee9be926d76 /Tools/Scripts/webkitpy/tool/bot/irc_command.py | |
parent | dd91e772430dc294e3bf478c119ef8d43c0a3358 (diff) | |
download | qtwebkit-2cf6c8816a73e0132bd8fa3b509d62d7c51b6e47.tar.gz |
Imported WebKit commit 7e538425aa020340619e927792f3d895061fb54b (http://svn.webkit.org/repository/webkit/trunk@116286)
Diffstat (limited to 'Tools/Scripts/webkitpy/tool/bot/irc_command.py')
-rw-r--r-- | Tools/Scripts/webkitpy/tool/bot/irc_command.py | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/Tools/Scripts/webkitpy/tool/bot/irc_command.py b/Tools/Scripts/webkitpy/tool/bot/irc_command.py index 19af969c1..7d3a6fd5e 100644 --- a/Tools/Scripts/webkitpy/tool/bot/irc_command.py +++ b/Tools/Scripts/webkitpy/tool/bot/irc_command.py @@ -33,7 +33,6 @@ import re from webkitpy.common.config import irc as config_irc from webkitpy.common.config import urls from webkitpy.common.config.committers import CommitterList -from webkitpy.common.checkout.changelog import parse_bug_id from webkitpy.common.system.executive import ScriptError from webkitpy.tool.bot.queueengine import TerminateQueue from webkitpy.tool.grammar import join_with_separators @@ -41,7 +40,7 @@ from webkitpy.tool.grammar import join_with_separators def _post_error_and_check_for_bug_url(tool, nicks_string, exception): tool.irc().post("%s" % exception) - bug_id = parse_bug_id(exception.output) + bug_id = urls.parse_bug_id(exception.output) if bug_id: bug_url = tool.bugs.bug_url_for_bug_id(bug_id) tool.irc().post("%s: Ugg... Might have created %s" % (nicks_string, bug_url)) @@ -53,16 +52,6 @@ class IRCCommand(object): raise NotImplementedError, "subclasses must implement" -class LastGreenRevision(IRCCommand): - def execute(self, nick, args, tool, sheriff): - if not args: - return "%s: Usage: last-green-revision BUILDER_NAME" % nick - result = tool.buildbot.last_green_revision(' '.join(args)) - for line in result.split('\n'): - if line: - tool.irc().post("%s: %s" % (nick, line)) - - class Restart(IRCCommand): def execute(self, nick, args, tool, sheriff): tool.irc().post("Restarting...") @@ -258,7 +247,6 @@ class CreateBug(IRCCommand): visible_commands = { "help": Help, "hi": Hi, - "last-green-revision": LastGreenRevision, "restart": Restart, "rollout": Rollout, "whois": Whois, |