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

Issue 6674059: Make sure warnings fail the check when may_prompt=False. (Closed)

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

Description

Make sure warnings fail the check when may_prompt=False. Split presubmit_support.Main() in two to make it simpler. Handle better the case with unversioned files and add a unit test. R=dpranke@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=78700

Patch Set 1 #

Total comments: 2

Patch Set 2 : moved determine_scm() #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -56 lines) Patch
M presubmit_support.py View 1 5 chunks +36 lines, -39 lines 1 comment Download
M scm.py View 1 1 chunk +18 lines, -0 lines 0 comments Download
M tests/presubmit_unittest.py View 1 4 chunks +32 lines, -15 lines 0 comments Download
M tests/scm_unittest.py View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
M-A Ruel
9 years, 9 months ago (2011-03-17 14:32:04 UTC) #1
M-A Ruel
Running presubmit hooks... ************* Module owners R0201: 93:Database._check_collection: Method could be a function ** Presubmit ...
9 years, 9 months ago (2011-03-17 14:33:01 UTC) #2
Dirk Pranke
http://codereview.chromium.org/6674059/diff/1/presubmit_support.py File presubmit_support.py (right): http://codereview.chromium.org/6674059/diff/1/presubmit_support.py#newcode1155 presubmit_support.py:1155: Can we put this in scm.py? It doesn't feel ...
9 years, 9 months ago (2011-03-17 19:12:56 UTC) #3
M-A Ruel
Updated.
9 years, 9 months ago (2011-03-18 15:54:21 UTC) #4
Dirk Pranke
LGTM. http://codereview.chromium.org/6674059/diff/6001/presubmit_support.py File presubmit_support.py (right): http://codereview.chromium.org/6674059/diff/6001/presubmit_support.py#newcode1128 presubmit_support.py:1128: change_scm = scm.determine_scm(options.root) At some point it seems ...
9 years, 9 months ago (2011-03-18 16:16:04 UTC) #5
M-A Ruel
9 years, 9 months ago (2011-03-18 16:18:47 UTC) #6
On 2011/03/18 16:16:04, dpranke wrote:
>
http://codereview.chromium.org/6674059/diff/6001/presubmit_support.py#newcode...
> presubmit_support.py:1128: change_scm = scm.determine_scm(options.root)
> At some point it seems like it might be better to change this to just be a
> factory routine that returns an object of the right class.

Agreed, but the class is not in the right file at the moment and there's some
issue about "what's a change".

Powered by Google App Engine
This is Rietveld 408576698