def handle_global_options(self, options):
     self.initialize_scm(options.patch_directories)
     if options.status_host:
         self.status_server.set_host(options.status_host)
     if options.bot_id:
         self.status_server.set_bot_id(options.bot_id)
     # If options.port is None, we'll get the default port for this platform.
     self._deprecated_port = DeprecatedPort.port(options.port)
 def handle_global_options(self, options):
     self.initialize_scm(options.patch_directories)
     if options.status_host:
         self.status_server.set_host(options.status_host)
     if options.bot_id:
         self.status_server.set_bot_id(options.bot_id)
     # If options.port is None, we'll get the default port for this platform.
     self._deprecated_port = DeprecatedPort.port(options.port)
Пример #3
0
 def begin_work_queue(self):
     AbstractPatchQueue.begin_work_queue(self)
     if not self.port_name:
         return
     # FIXME: This is only used for self._deprecated_port.flag()
     self._deprecated_port = DeprecatedPort.port(self.port_name)
     # FIXME: This violates abstraction
     self._tool._deprecated_port = self._deprecated_port
     self._port = self._tool.port_factory.get(self._new_port_name_from_old(self.port_name))
Пример #4
0
 def begin_work_queue(self):
     AbstractPatchQueue.begin_work_queue(self)
     if not self.port_name:
         return
     # FIXME: This is only used for self._deprecated_port.flag()
     self._deprecated_port = DeprecatedPort.port(self.port_name)
     # FIXME: This violates abstraction
     self._tool._deprecated_port = self._deprecated_port
     self._port = self._tool.port_factory.get(self._new_port_name_from_old(self.port_name, self._tool.platform))
Пример #5
0
 def __init__(self):
     options = [
         make_option("--run-tests",
                     action="store_true",
                     dest="run_tests",
                     default=self._default_run_tests,
                     help="Run the Layout tests for each patch")
     ]
     AbstractReviewQueue.__init__(self, options=options)
     self.port = DeprecatedPort.port(self.port_name)
Пример #6
0
    def begin_work_queue(self):
        AbstractPatchQueue.begin_work_queue(self)
        if not self.port_name:
            return
        # FIXME: This is only used for self._deprecated_port.flag()
        self._deprecated_port = DeprecatedPort.port(self.port_name)
        # FIXME: This violates abstraction
        self._tool._deprecated_port = self._deprecated_port

        self._create_port()
Пример #7
0
 def __init__(self):
     options = [
         make_option(
             "--run-tests",
             action="store_true",
             dest="run_tests",
             default=self._default_run_tests,
             help="Run the Layout tests for each patch",
         )
     ]
     AbstractReviewQueue.__init__(self, options=options)
     self.port = DeprecatedPort.port(self.port_name)
Пример #8
0
    def handle_global_options(self, options):
        self.initialize_scm(options.patch_directories)

        api_key = self._status_server_api_key()
        if api_key:
            self.status_server.set_api_key(api_key)

        if options.status_host:
            self.status_server.set_host(options.status_host)
        self.status_server.set_use_https(options.status_host_uses_https)
        if options.bot_id:
            self.status_server.set_bot_id(options.bot_id)
        if options.irc_password:
            self.irc_password = options.irc_password
        # If options.port is None, we'll get the default port for this platform.
        self._deprecated_port = DeprecatedPort.port(options.port)
Пример #9
0
 def __init__(self):
     AbstractPatchQueue.__init__(self)
     self.port = DeprecatedPort.port(self.port_name)
Пример #10
0
 def handle_global_options(self, options):
     self.initialize_scm(options.patch_directories)
     # If options.port is None, we'll get the default port for this platform.
     self._deprecated_port = DeprecatedPort.port(options.port)
Пример #11
0
 def handle_global_options(self, options):
     self.initialize_scm(options.patch_directories)
     # If options.port is None, we'll get the default port for this platform.
     self._deprecated_port = DeprecatedPort.port(options.port)
Пример #12
0
 def __init__(self):
     AbstractPatchQueue.__init__(self)
     self.port = DeprecatedPort.port(self.port_name)