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

Issue 195913002: gclient: in managed mode, warn if .gclient has a mismatched URL (Closed)

Created:
6 years, 9 months ago by borenet
Modified:
6 years, 9 months ago
Reviewers:
iannucci
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, M-A Ruel, iannucci+depot_tools_chromium.org, ilevy-cc_chromium.org
Visibility:
Public.

Description

gclient: in managed mode, warn if .gclient has a mismatched URL BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=258617

Patch Set 1 #

Patch Set 2 : Add GetActualRemoteURL and DoesRemoteURLMatch to SCMWrapper #

Total comments: 6

Patch Set 3 : Print a warning instead of erroring out #

Patch Set 4 : Move to _CheckConfig method, use atexit #

Total comments: 3

Patch Set 5 : Move _CheckConfig to end of RunOnDeps #

Total comments: 2

Patch Set 6 : Tweak docstring #

Patch Set 7 : Fix smoketests #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -3 lines) Patch
M gclient.py View 1 2 3 4 5 6 2 chunks +35 lines, -0 lines 0 comments Download
M gclient_scm.py View 1 2 3 4 5 6 2 chunks +29 lines, -0 lines 1 comment Download
M tests/gclient_test.py View 1 2 3 3 chunks +10 lines, -3 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
borenet
This is pretty hacky right now, but it's just a proof of concept.
6 years, 9 months ago (2014-03-11 22:03:42 UTC) #1
iannucci
What about having the SCM object provide a remote-v-local api which can return "OK", "mismatched ...
6 years, 9 months ago (2014-03-12 20:06:04 UTC) #2
borenet
On 2014/03/12 20:06:04, iannucci wrote: > What about having the SCM object provide a remote-v-local ...
6 years, 9 months ago (2014-03-12 20:23:43 UTC) #3
borenet
Uploaded patch set 2. https://codereview.chromium.org/195913002/diff/20001/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/195913002/diff/20001/gclient_scm.py#newcode144 gclient_scm.py:144: """Attempt to determine the remote ...
6 years, 9 months ago (2014-03-13 13:53:35 UTC) #4
iannucci
yeah, I think making it a loud warning (maybe with an explicit "continue" action from ...
6 years, 9 months ago (2014-03-13 18:27:26 UTC) #5
borenet
Changed to be a warning instead. I'm not sure I like the idea of waiting ...
6 years, 9 months ago (2014-03-13 18:57:25 UTC) #6
iannucci
On 2014/03/13 18:57:25, borenet wrote: > Changed to be a warning instead. I'm not sure ...
6 years, 9 months ago (2014-03-13 21:54:22 UTC) #7
borenet
Uploaded patch set 4. https://codereview.chromium.org/195913002/diff/60001/gclient.py File gclient.py (right): https://codereview.chromium.org/195913002/diff/60001/gclient.py#newcode81 gclient.py:81: import atexit Is atexit acceptable ...
6 years, 9 months ago (2014-03-14 13:30:56 UTC) #8
borenet
On 2014/03/14 13:30:56, borenet wrote: > Uploaded patch set 4. > > https://codereview.chromium.org/195913002/diff/60001/gclient.py > File ...
6 years, 9 months ago (2014-03-17 16:54:20 UTC) #9
iannucci
https://codereview.chromium.org/195913002/diff/60001/gclient.py File gclient.py (right): https://codereview.chromium.org/195913002/diff/60001/gclient.py#newcode81 gclient.py:81: import atexit On 2014/03/14 13:30:57, borenet wrote: > Is ...
6 years, 9 months ago (2014-03-17 17:38:40 UTC) #10
borenet
https://codereview.chromium.org/195913002/diff/60001/gclient.py File gclient.py (right): https://codereview.chromium.org/195913002/diff/60001/gclient.py#newcode81 gclient.py:81: import atexit On 2014/03/17 17:38:40, iannucci wrote: > On ...
6 years, 9 months ago (2014-03-17 17:41:33 UTC) #11
iannucci
On 2014/03/17 17:41:33, borenet wrote: > https://codereview.chromium.org/195913002/diff/60001/gclient.py > File gclient.py (right): > > https://codereview.chromium.org/195913002/diff/60001/gclient.py#newcode81 > ...
6 years, 9 months ago (2014-03-17 18:55:01 UTC) #12
borenet
On 2014/03/17 18:55:01, iannucci wrote: > On 2014/03/17 17:41:33, borenet wrote: > > https://codereview.chromium.org/195913002/diff/60001/gclient.py > ...
6 years, 9 months ago (2014-03-17 19:07:27 UTC) #13
iannucci
lgtm :) As mentioned offline, it would be good to have a general facility to ...
6 years, 9 months ago (2014-03-18 20:20:55 UTC) #14
borenet
Agreed. Per our discussion in chat, having a way to list all warnings at the ...
6 years, 9 months ago (2014-03-18 20:30:08 UTC) #15
borenet
The CQ bit was checked by borenet@google.com
6 years, 9 months ago (2014-03-20 18:21:22 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/borenet@google.com/195913002/100001
6 years, 9 months ago (2014-03-20 18:21:30 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-20 18:23:32 UTC) #18
commit-bot: I haz the power
Presubmit check for 195913002-100001 failed and returned exit status 1. Running presubmit commit checks ...
6 years, 9 months ago (2014-03-20 18:23:33 UTC) #19
borenet
Uploaded patch set 6 to fix the smoketests, which failed because of the following spec ...
6 years, 9 months ago (2014-03-20 18:52:29 UTC) #20
iannucci
lgtm
6 years, 9 months ago (2014-03-21 17:20:40 UTC) #21
borenet
The CQ bit was checked by borenet@google.com
6 years, 9 months ago (2014-03-21 17:22:27 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/borenet@google.com/195913002/120001
6 years, 9 months ago (2014-03-21 17:22:38 UTC) #23
commit-bot: I haz the power
Change committed as 258617
6 years, 9 months ago (2014-03-21 17:24:50 UTC) #24
ahe
https://codereview.chromium.org/195913002/diff/120001/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/195913002/diff/120001/gclient_scm.py#newcode146 gclient_scm.py:146: return shlex.split(scm.GIT.Capture( I have a layout where a Subversion ...
6 years, 9 months ago (2014-03-24 15:07:36 UTC) #25
borenet
On 2014/03/24 15:07:36, ahe wrote: > https://codereview.chromium.org/195913002/diff/120001/gclient_scm.py > File gclient_scm.py (right): > > https://codereview.chromium.org/195913002/diff/120001/gclient_scm.py#newcode146 > ...
6 years, 9 months ago (2014-03-24 15:08:48 UTC) #26
ahe
6 years, 9 months ago (2014-03-24 15:13:22 UTC) #27
Message was sent while issue was closed.
On 2014/03/24 15:08:48, borenet wrote:
> Yes - someone else reported this as well.  The fix is uploaded for review
here:
> https://codereview.chromium.org/209963002/

Awesome! I'll ignore the warning for now.

Powered by Google App Engine
This is Rietveld 408576698