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

Issue 1880243003: git cl: add --gerrit and --rietveld options to force codereview. (Closed)

Created:
4 years, 8 months ago by tandrii(chromium)
Modified:
4 years, 8 months ago
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@T200
Target Ref:
refs/heads/master
Visibility:
Public.

Description

git cl: add --gerrit and --rietveld options to force codereview. This makes it possible to override the codereview set in: * repository codereview.settings * cached/set in local .git/config, either repo-wide or current branch only. Examples: cd $SOME_RIETVELD_USING_REPO # Enable Gerrit codereview on it. Contact Infra-Git admin: # https://bugs.chromium.org/p/chromium/issues/entry?template=Infra-Git # Uploading git cl upload --gerrit --squash # Hack, hack, re-upload uses Gerrit automatically. git cl upload --squash # Patching git new-branch patched-in-issue git cl patch --gerrit XXXXXX # (Re-)setting issue git cl issue --gerrit 0 git cl issue --gerrit XXXXXX R=andybons@chromium.org,sergiyb@chromium.org BUG=598681 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=299901

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -13 lines) Patch
M git_cl.py View 6 chunks +32 lines, -3 lines 0 comments Download
M tests/git_cl_test.py View 3 chunks +35 lines, -10 lines 4 comments Download

Depends on Patchset:

Messages

Total messages: 18 (8 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1880243003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1880243003/1
4 years, 8 months ago (2016-04-13 16:41:22 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-13 16:43:54 UTC) #4
tandrii(chromium)
PTAL This Gerrit CL was uploaded this way for infra/infra repo: https://chromium-review.googlesource.com/#/c/338811/2
4 years, 8 months ago (2016-04-13 16:44:20 UTC) #5
Bons
lgtm
4 years, 8 months ago (2016-04-13 17:00:39 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1880243003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1880243003/1
4 years, 8 months ago (2016-04-13 17:08:27 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1880243003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1880243003/1
4 years, 8 months ago (2016-04-13 17:10:08 UTC) #13
commit-bot: I haz the power
Committed patchset #1 (id:1) as http://src.chromium.org/viewvc/chrome?view=rev&revision=299901
4 years, 8 months ago (2016-04-13 17:11:23 UTC) #15
Sergiy Byelozyorov
lgtm w/ comment https://codereview.chromium.org/1880243003/diff/1/tests/git_cl_test.py File tests/git_cl_test.py (right): https://codereview.chromium.org/1880243003/diff/1/tests/git_cl_test.py#newcode1192 tests/git_cl_test.py:1192: self._patch_common(is_gerrit=True, force_codereview=True) can you please try ...
4 years, 8 months ago (2016-04-13 17:18:59 UTC) #16
tandrii(chromium)
https://codereview.chromium.org/1880243003/diff/1/tests/git_cl_test.py File tests/git_cl_test.py (right): https://codereview.chromium.org/1880243003/diff/1/tests/git_cl_test.py#newcode1129 tests/git_cl_test.py:1129: ((['git', 'config', 'branch.master.rietveldissue'],), ''), if this line had '12345' ...
4 years, 8 months ago (2016-04-13 18:13:46 UTC) #17
Sergiy Byelozyorov
4 years, 8 months ago (2016-04-13 18:21:55 UTC) #18
Message was sent while issue was closed.
https://codereview.chromium.org/1880243003/diff/1/tests/git_cl_test.py
File tests/git_cl_test.py (right):

https://codereview.chromium.org/1880243003/diff/1/tests/git_cl_test.py#newcod...
tests/git_cl_test.py:1192: self._patch_common(is_gerrit=True,
force_codereview=True)
On 2016/04/13 18:13:46, tandrii(chromium) wrote:
> On 2016/04/13 17:18:59, Sergiy Byelozyorov wrote:
> > can you please try to create mock rietveld CL here and see if we can
override
> it
> > with --gerrit option?
> 
> Ha, good comment/idea! However, the calls below is the *only* way to "git cl
> patch" to figure out what's the state of the current branch. And as you can
see
> in expectations below, it never asks, hence works regardless.

Acknowledged.

Powered by Google App Engine
This is Rietveld 408576698