def run(self, state): commit_comment = bug_comment_from_commit_text(self._tool.scm(), state["commit_text"]) comment_text = "Reverted r%s for reason:\n\n%s\n\n%s" % (state["revision"], state["reason"], commit_comment) bug_id = state["bug_id"] if not bug_id: log(comment_text) log("No bugs were updated.") return self._tool.bugs.reopen_bug(bug_id, comment_text)
def run(self, state): commit_comment = bug_comment_from_commit_text(self._tool.scm(), state["commit_text"]) comment_text = "Reverted r%s for reason:\n\n%s\n\n%s" % ( state["revision"], state["reason"], commit_comment) bug_id = state["bug_id"] if not bug_id: log(comment_text) log("No bugs were updated.") return self._tool.bugs.reopen_bug(bug_id, comment_text)
def run(self, state): comment_text = bug_comment_from_commit_text(self._tool.scm(), state["commit_text"]) bug_id = state.get("bug_id") if not bug_id and state.get("patch"): bug_id = state.get("patch").bug_id() if bug_id: log("Updating bug %s" % bug_id) if self._options.close_bug: self._tool.bugs.close_bug_as_fixed(bug_id, comment_text) else: # FIXME: We should a smart way to figure out if the patch is attached # to the bug, and if so obsolete it. self._tool.bugs.post_comment_to_bug(bug_id, comment_text) else: log(comment_text) log("No bug id provided.")
def run(self, state): bug_id = state["bug_id"] # FIXME: Fully automated rollout is not 100% idiot-proof yet, so for now just log with instructions on how to complete the rollout. # Once we trust rollout we will remove this option. if not self._options.complete_rollout: log("\nNOTE: Rollout support is experimental.\nPlease verify the rollout diff and use \"webkit-patch land %s\" to commit the rollout." % bug_id) return MetaStep.run(self, state) commit_comment = bug_comment_from_commit_text(self._tool.scm(), state["commit_text"]) comment_text = "Reverted r%s for reason:\n\n%s\n\n%s" % (state["revision"], state["reason"], commit_comment) if not bug_id: log(comment_text) log("No bugs were updated.") return self._tool.bugs.reopen_bug(bug_id, comment_text)
def run(self, state): comment_text = bug_comment_from_commit_text(self._tool.scm(), state["commit_text"]) self._tool.bugs.clear_attachment_flags(state["patch"].id(), comment_text)