From: ulan@chromium.org Date: Thu, 25 Sep 2014 11:28:27 +0000 (+0000) Subject: Add myself to CC in merge_to_branch.py X-Git-Tag: upstream/4.7.83~6694 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3857757f96b756d8ce77cd555bd7cccfe1a236cf;p=platform%2Fupstream%2Fv8.git Add myself to CC in merge_to_branch.py BUG= R=machenbach@chromium.org Review URL: https://codereview.chromium.org/603113002 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24222 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/tools/push-to-trunk/common_includes.py b/tools/push-to-trunk/common_includes.py index 670ecea..266d1fe 100644 --- a/tools/push-to-trunk/common_includes.py +++ b/tools/push-to-trunk/common_includes.py @@ -546,7 +546,8 @@ class UploadStep(Step): self.DieNoManualMode("A reviewer must be specified in forced mode.") reviewer = self.ReadLine() self.GitUpload(reviewer, self._options.author, self._options.force_upload, - bypass_hooks=self._options.bypass_upload_hooks) + bypass_hooks=self._options.bypass_upload_hooks, + cc=self._options.cc) class DetermineV8Sheriff(Step): diff --git a/tools/push-to-trunk/git_recipes.py b/tools/push-to-trunk/git_recipes.py index 0f8fcef..d146748 100644 --- a/tools/push-to-trunk/git_recipes.py +++ b/tools/push-to-trunk/git_recipes.py @@ -194,7 +194,7 @@ class GitRecipesMixin(object): self.Git(MakeArgs(args), **kwargs) def GitUpload(self, reviewer="", author="", force=False, cq=False, - bypass_hooks=False, **kwargs): + bypass_hooks=False, cc="", **kwargs): args = ["cl upload --send-mail"] if author: args += ["--email", Quoted(author)] @@ -206,6 +206,8 @@ class GitRecipesMixin(object): args.append("--use-commit-queue") if bypass_hooks: args.append("--bypass-hooks") + if cc: + args += ["-cc", Quoted(cc)] # TODO(machenbach): Check output in forced mode. Verify that all required # base files were uploaded, if not retry. self.Git(MakeArgs(args), pipe=False, **kwargs) diff --git a/tools/push-to-trunk/merge_to_branch.py b/tools/push-to-trunk/merge_to_branch.py index 3fd3450..ce02b08 100755 --- a/tools/push-to-trunk/merge_to_branch.py +++ b/tools/push-to-trunk/merge_to_branch.py @@ -293,6 +293,8 @@ class MergeToBranch(ScriptsBase): print "You must specify a merge comment if no patches are specified" return False options.bypass_upload_hooks = True + # CC ulan to make sure that fixes are merged to Google3. + options.cc = "ulan@chromium.org" return True def _Config(self): diff --git a/tools/push-to-trunk/test_scripts.py b/tools/push-to-trunk/test_scripts.py index 3c5bfeb..d1eb243 100644 --- a/tools/push-to-trunk/test_scripts.py +++ b/tools/push-to-trunk/test_scripts.py @@ -1138,7 +1138,7 @@ LOG=N Cmd("git commit -aF \"%s\"" % TEST_CONFIG["COMMITMSG_FILE"], ""), RL("reviewer@chromium.org"), # V8 reviewer. Cmd("git cl upload --send-mail -r \"reviewer@chromium.org\" " - "--bypass-hooks", ""), + "--bypass-hooks -cc \"ulan@chromium.org\"", ""), Cmd("git checkout -f %s" % TEST_CONFIG["BRANCHNAME"], ""), RL("LGTM"), # Enter LGTM for V8 CL. Cmd("git cl presubmit", "Presubmit successfull\n"),