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

Issue 6674014: Make git-cl work with OWNERS files in a non .git/hooks/pre-cl-* world (Closed)

Created:
9 years, 9 months ago by Dirk Pranke
Modified:
9 years, 7 months ago
Reviewers:
anush, M-A Ruel, Evan Martin
CC:
chromium-reviews, M-A Ruel
Visibility:
Public.

Description

Make git-cl work with OWNERS file hooks properly. This version calls into presubmit_support directly to support the OWNERS hooks. We do not need both this patch and http://codereview.chromium.org/6646009/ This patch depends on http://codereview.chromium.org/6665018/ . Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=77898

Patch Set 1 #

Patch Set 2 : remove code for hooks that is no longer needed #

Patch Set 3 : remove unnecessary code #

Total comments: 4

Patch Set 4 : clean up logging #

Total comments: 1

Patch Set 5 : rebase to HEAD, minor linting, cleanup, testing, fix post-commit hook #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+230 lines, -132 lines) Patch
M git_cl/git_cl.py View 1 2 3 4 18 chunks +128 lines, -48 lines 1 comment Download
A git_cl/test/owners.sh View 1 1 chunk +46 lines, -0 lines 0 comments Download
D git_cl/test/post-dcommit-hook-test.sh View 1 3 4 1 chunk +0 lines, -37 lines 0 comments Download
M presubmit_canned_checks.py View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M presubmit_support.py View 1 2 3 4 9 chunks +20 lines, -17 lines 0 comments Download
M tests/presubmit_unittest.py View 1 2 3 4 16 chunks +32 lines, -29 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Dirk Pranke
Okay, here's the version w/o hooks. Substantially smaller.
9 years, 9 months ago (2011-03-11 05:39:03 UTC) #1
M-A Ruel
Looks sane to me. Maybe it could implemented differently eventually but right now it's fine. ...
9 years, 9 months ago (2011-03-11 18:00:06 UTC) #2
Dirk Pranke
http://codereview.chromium.org/6674014/diff/3008/git_cl/git_cl.py File git_cl/git_cl.py (right): http://codereview.chromium.org/6674014/diff/3008/git_cl/git_cl.py#newcode497 git_cl/git_cl.py:497: reviewer_regexp = re.compile('ADD: R=(.+)') On 2011/03/11 18:00:06, Marc-Antoine Ruel ...
9 years, 9 months ago (2011-03-11 21:06:31 UTC) #3
M-A Ruel
http://codereview.chromium.org/6674014/diff/3008/git_cl/git_cl.py File git_cl/git_cl.py (right): http://codereview.chromium.org/6674014/diff/3008/git_cl/git_cl.py#newcode789 git_cl/git_cl.py:789: if not res: What about PresubmitNotifyResult?
9 years, 9 months ago (2011-03-11 21:21:54 UTC) #4
Dirk Pranke
http://codereview.chromium.org/6674014/diff/3008/git_cl/git_cl.py File git_cl/git_cl.py (right): http://codereview.chromium.org/6674014/diff/3008/git_cl/git_cl.py#newcode789 git_cl/git_cl.py:789: if not res: On 2011/03/11 21:21:55, Marc-Antoine Ruel wrote: ...
9 years, 9 months ago (2011-03-11 21:39:18 UTC) #5
Dirk Pranke
9 years, 9 months ago (2011-03-11 21:53:33 UTC) #6
Dirk Pranke
On 2011/03/11 21:53:33, dpranke wrote: Per IM w/ anush@ and msb@ we should be safe ...
9 years, 9 months ago (2011-03-11 23:07:27 UTC) #7
M-A Ruel
http://codereview.chromium.org/6674014/diff/9002/git_cl/git_cl.py File git_cl/git_cl.py (right): http://codereview.chromium.org/6674014/diff/9002/git_cl/git_cl.py#newcode788 git_cl/git_cl.py:788: default_presubmit=None, may_prompt=None, tbr=tbr, You disable may_prompt so that converts ...
9 years, 9 months ago (2011-03-11 23:11:14 UTC) #8
Dirk Pranke
On 2011/03/11 23:11:14, Marc-Antoine Ruel wrote: > http://codereview.chromium.org/6674014/diff/9002/git_cl/git_cl.py > File git_cl/git_cl.py (right): > > http://codereview.chromium.org/6674014/diff/9002/git_cl/git_cl.py#newcode788 ...
9 years, 9 months ago (2011-03-12 00:31:57 UTC) #9
M-A Ruel
lgtm with verification about may_prompt. http://codereview.chromium.org/6674014/diff/6003/git_cl/git_cl.py File git_cl/git_cl.py (right): http://codereview.chromium.org/6674014/diff/6003/git_cl/git_cl.py#newcode862 git_cl/git_cl.py:862: may_prompt=(not options.force)) Can you ...
9 years, 9 months ago (2011-03-12 03:02:21 UTC) #10
Dirk Pranke
9 years, 9 months ago (2011-03-12 04:38:44 UTC) #11
On 2011/03/12 03:02:21, Marc-Antoine Ruel wrote:
> lgtm with verification about may_prompt.
> 
> http://codereview.chromium.org/6674014/diff/6003/git_cl/git_cl.py
> File git_cl/git_cl.py (right):
> 
> http://codereview.chromium.org/6674014/diff/6003/git_cl/git_cl.py#newcode862
> git_cl/git_cl.py:862: may_prompt=(not options.force))
> Can you test it to see what happens when may_prompt=True and a PromptWarning
is
> generated?

Of course, it didn't work :( But I had already committed the change.

I've committed a follow-on that actually does work (tested by hand) and TBR'ed
that to you. 

http://codereview.chromium.org/6682018/

Sorry!

Powered by Google App Engine
This is Rietveld 408576698