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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/commit_announcer.py

Issue 2797913002: Remove the commit-announcer command from webkit-patch (Closed)
Patch Set: Created 3 years, 8 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
Index: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/commit_announcer.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/commit_announcer.py b/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/commit_announcer.py
deleted file mode 100644
index 30d2fe77949200fc0d3c08317b440386bc320c98..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/commit_announcer.py
+++ /dev/null
@@ -1,69 +0,0 @@
-# Copyright (c) 2013 Google Inc. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are
-# met:
-#
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above
-# copyright notice, this list of conditions and the following disclaimer
-# in the documentation and/or other materials provided with the
-# distribution.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-import logging
-import optparse
-import time
-import traceback
-
-from webkitpy.tool.bot.commit_announcer import CommitAnnouncerThread
-from webkitpy.tool.bot.commit_announcer import UPDATE_WAIT_SECONDS
-from webkitpy.tool.commands.command import Command
-
-_log = logging.getLogger(__name__)
-ANNOUNCE_PATH = 'third_party/WebKit'
-
-
-class CommitAnnouncerCommand(Command):
- name = 'commit-announcer'
- help_text = 'Start an IRC bot for announcing new git commits.'
- show_in_main_help = True
-
- def __init__(self):
- options = [
- optparse.make_option('--irc-password', default=None, help='Specify IRC password to use.'),
- ]
- super(CommitAnnouncerCommand, self).__init__(options)
-
- def execute(self, options, args, tool):
- bot_thread = CommitAnnouncerThread(tool, ANNOUNCE_PATH, options.irc_password)
- bot_thread.start()
- _log.info('Bot started')
- try:
- while bot_thread.is_alive():
- bot_thread.bot.post_new_commits()
- time.sleep(UPDATE_WAIT_SECONDS)
- except KeyboardInterrupt:
- _log.error('Terminated by keyboard interrupt')
- except Exception:
- _log.error('Unexpected error:')
- _log.error(traceback.format_exc())
-
- if bot_thread.is_alive():
- _log.info('Disconnecting bot')
- bot_thread.stop()
- else:
- _log.info('Bot offline')
- _log.info('Done')

Powered by Google App Engine
This is Rietveld 408576698