Home | History | Annotate | Download | only in commands

Lines Matching refs:tool

37 from webkitpy.tool import steps
44 from webkitpy.tool.commands.abstractsequencedcommand import AbstractSequencedCommand
45 from webkitpy.tool.comments import bug_comment_from_svn_revision
46 from webkitpy.tool.grammar import pluralize, join_with_separators
47 from webkitpy.tool.multicommandtool import AbstractDeclarativeCommand
60 def execute(self, options, args, tool):
63 print "%s" % tool.checkout().commit_message_for_this_commit(options.git_commit).message()
82 def execute(self, options, args, tool):
84 for bug_id in tool.bugs.queries.fetch_bug_ids_from_pending_commit_list():
100 def execute(self, options, args, tool):
105 for patch_id in tool.bugs.queries.fetch_attachment_ids_from_review_queue():
159 def execute(self, options, args, tool):
160 for bug_id in tool.bugs.queries.fetch_bug_ids_from_pending_commit_list():
172 def _prepare_state(self, options, args, tool):
184 def _prepare_state(self, options, args, tool):
192 def _bug_id(self, options, args, tool, state):
198 bug_id = tool.checkout().bug_id_for_this_commit(options.git_commit, changed_files)
201 def _prepare_state(self, options, args, tool):
203 state["bug_id"] = self._bug_id(options, args, tool, state)
250 def _prepare_state(self, options, args, tool):
280 def _prepare_state(self, options, args, tool):
282 state["bug_id"] = self._bug_id(options, args, tool, state)
311 def _comment_text_for_commit(self, options, commit_message, tool, commit_id):
316 comment_text += tool.scm().files_changed_summary_for_commit(commit_id)
319 def execute(self, options, args, tool):
320 commit_ids = tool.scm().commit_ids_from_commitish_arguments(args)
326 commit_message = tool.scm().commit_message_for_local_commit(commit_id)
329 bug_id = options.bug_id or parse_bug_id_from_changelog(commit_message.message()) or parse_bug_id_from_changelog(tool.scm().create_patch(git_commit=commit_id))
336 steps.ObsoletePatches(tool, options).run(state)
339 diff = tool.scm().create_patch(git_commit=commit_id)
341 comment_text = self._comment_text_for_commit(options, commit_message, tool, commit_id)
342 tool.bugs.add_patch_to_bug(bug_id, diff, description, comment_text, mark_for_review=options.review, mark_for_commit_queue=options.request_commit)
360 def _fetch_commit_log(self, tool, svn_revision):
362 return tool.scm().last_svn_commit_log()
363 return tool.scm().svn_commit_log(svn_revision)
365 def _determine_bug_id_and_svn_revision(self, tool, bug_id, svn_revision):
366 tool, svn_revision)
387 def execute(self, options, args, tool):
400 (bug_id, svn_revision) = self._determine_bug_id_and_svn_revision(tool, bug_id, svn_revision)
402 log("Bug: <%s> %s" % (tool.bugs.bug_url_for_bug_id(bug_id), tool.bugs.fetch_bug_dictionary(bug_id)["title"]))
406 tool.user.open_url(tool.bugs.bug_url_for_bug_id(bug_id))
409 if not tool.user.confirm("Is this correct?"):
418 tool.bugs.post_comment_to_bug(bug_id, bug_comment)
421 tool.bugs.close_bug_as_fixed(bug_id, bug_comment)
440 def create_bug_from_commit(self, options, args, tool):
441 commit_ids = tool.scm().commit_ids_from_commitish_arguments(args)
452 commit_message = tool.scm().commit_message_for_local_commit(commit_id)
456 comment_text += tool.scm().files_changed_summary_for_commit(commit_id)
458 diff = tool.scm().create_patch(git_commit=commit_id)
459 bug_id = tool.bugs.create_bug(bug_title, comment_text, options.component, diff, "Patch", cc=options.cc, mark_for_review=options.review, mark_for_commit_queue=options.request_commit)
465 PostCommits.execute(self, options, commit_ids[1:], tool)
467 def create_bug_from_patch(self, options, args, tool):
473 commit_message = tool.checkout().commit_message_for_this_commit(options.git_commit)
477 diff = tool.scm().create_patch(options.git_commit)
478 bug_id = tool.bugs.create_bug(bug_title, comment_text, options.component, diff, "Patch", cc=options.cc, mark_for_review=options.review, mark_for_commit_queue=options.request_commit)
495 def execute(self, options, args, tool):
497 if (not tool.scm().supports_local_commits()):
499 self.create_bug_from_commit(options, args, tool)
501 self.create_bug_from_patch(options, args, tool)