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

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

Issue 2064313003: Rename files in webkitpy/tool to have underscores between words (for consistency). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 6 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/commitannouncer.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/commitannouncer.py b/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/commitannouncer.py
deleted file mode 100644
index ef3100739c2335cc96ae4ded61428e606f0b4475..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/commitannouncer.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
-from optparse import make_option
-import time
-import traceback
-
-from webkitpy.common.config.irc import update_wait_seconds
-from webkitpy.tool.bot.commitannouncer import CommitAnnouncerThread
-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 = [
- 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