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

Issue 189913020: gclient: print a warning if a dep would get deleted or moved in the future (Closed)

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

Description

gclient: print a warning if a dep would get deleted or moved in the future BUG=skia:1638 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=262761

Patch Set 1 : Re-land https://codereview.chromium.org/192323006/ #

Patch Set 2 : Fix for unmanaged git(-svn?) checkouts #

Patch Set 3 : Instead of erroring out on a conflicting checkout, move it to a _bad_scm dir #

Patch Set 4 : Refactor delete/move logic, add random number to move dest #

Total comments: 2

Patch Set 5 : Use tempfile #

Patch Set 6 : Fix creation of _bad_scm dir #

Patch Set 7 : Fix makedirs again ( rebase) #

Patch Set 8 : Don't actually move or delete anything; just print an urgent warning. #

Patch Set 9 : Fix warning #

Total comments: 4

Patch Set 10 : Remove commented lines #

Patch Set 11 : rebase+fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+285 lines, -59 lines) Patch
M gclient_scm.py View 1 2 3 4 5 6 7 8 9 10 8 chunks +39 lines, -26 lines 0 comments Download
M scm.py View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M testing_support/fake_repos.py View 1 chunk +76 lines, -0 lines 0 comments Download
M tests/gclient_scm_test.py View 1 2 3 4 5 6 7 8 9 10 13 chunks +157 lines, -15 lines 0 comments Download
M tests/gclient_smoketest.py View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -17 lines 0 comments Download
M tests/scm_unittest.py View 1 2 3 4 5 6 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
borenet
6 years, 9 months ago (2014-03-10 20:19:32 UTC) #1
iannucci
Nico, can you apply this locally and see if it works well with the tweaked ...
6 years, 9 months ago (2014-03-10 20:28:55 UTC) #2
Nico
cd ~/src/depot_tools; curl https://codereview.chromium.org/download/issue189913020_20001.diff | patch -p1; cd - gclient sync Error: 1> Can't update/checkout ...
6 years, 9 months ago (2014-03-10 20:33:47 UTC) #3
borenet
On 2014/03/10 20:33:47, Nico wrote: > cd ~/src/depot_tools; curl > https://codereview.chromium.org/download/issue189913020_20001.diff | patch > -p1; ...
6 years, 9 months ago (2014-03-10 20:35:23 UTC) #4
iannucci
libc++ recently switched from SVN -> GIT (which would have been handled by Eric's patch ...
6 years, 9 months ago (2014-03-10 20:36:42 UTC) #5
Nico
Not that recently, almost a week ago: http://src.chromium.org/viewvc/chrome?revision=254959&view=revision To reiterate, `gclient sync` works fine without ...
6 years, 9 months ago (2014-03-10 20:37:52 UTC) #6
borenet
For debugging's sake, can you list the contents of src/third_party/libc++abi/trunk? Notably, if there's an svn ...
6 years, 9 months ago (2014-03-10 20:50:18 UTC) #7
Nico
It's the other way round, DEPS lists svn, third_party/libc++ is git: $ ls -a third_party/libc++/trunk/ ...
6 years, 9 months ago (2014-03-10 20:57:08 UTC) #8
borenet
Ah, so it looks like they actually switched from git to svn. In this case, ...
6 years, 9 months ago (2014-03-10 21:13:34 UTC) #9
Nico
Fixing this sounds great :-) Maybe there could be short-term special case code that does ...
6 years, 9 months ago (2014-03-10 21:45:07 UTC) #10
borenet
Personally, I'd like to find a general solution, especially since this type of DEPS change ...
6 years, 9 months ago (2014-03-11 13:18:13 UTC) #11
Nico
On Tue, Mar 11, 2014 at 6:18 AM, <borenet@google.com> wrote: > Personally, I'd like to ...
6 years, 9 months ago (2014-03-11 16:54:42 UTC) #12
iannucci
At this point I'm OK with either the general solution or the specific magic hack ...
6 years, 9 months ago (2014-03-11 19:34:16 UTC) #13
borenet
Uploaded patch set 4, which moves the offending directory to a _bad_scm.#### directory. I'm still ...
6 years, 9 months ago (2014-03-11 21:18:42 UTC) #14
borenet
On 2014/03/11 21:18:42, borenet wrote: > Uploaded patch set 4, which moves the offending directory ...
6 years, 9 months ago (2014-03-11 22:04:22 UTC) #15
Nico
On Tue, Mar 11, 2014 at 2:18 PM, <borenet@google.com> wrote: > Uploaded patch set 4, ...
6 years, 9 months ago (2014-03-11 23:10:09 UTC) #16
iannucci
This lgtm. The flows I think it covers are: * .gclient says 'svn', but it's ...
6 years, 9 months ago (2014-03-12 19:55:24 UTC) #17
borenet
More precisely: * .gclient says 'svn' AND "git config --get svn-remote.svn.url" is the expected URL: ...
6 years, 9 months ago (2014-03-13 13:00:28 UTC) #18
borenet
6 years, 9 months ago (2014-03-13 13:01:01 UTC) #19
borenet
Uploaded patch set 7.
6 years, 8 months ago (2014-04-03 18:57:18 UTC) #20
iannucci
On 2014/04/03 18:57:18, borenet wrote: > Uploaded patch set 7. Do you plan to do ...
6 years, 8 months ago (2014-04-03 19:17:58 UTC) #21
borenet
Per the above comment, taking a slightly more careful approach: rather than delete/move, just print ...
6 years, 8 months ago (2014-04-03 19:44:41 UTC) #22
iannucci
lgtm, though if you could prepare the followup CL and mention it in this one, ...
6 years, 8 months ago (2014-04-04 00:49:54 UTC) #23
borenet
Uploaded patch set 10 and created followup CL: https://codereview.chromium.org/225403015/ ("gclient: Actually move or delete mismatched ...
6 years, 8 months ago (2014-04-07 14:24:01 UTC) #24
iannucci
lgtm
6 years, 8 months ago (2014-04-08 00:41:27 UTC) #25
borenet
The CQ bit was checked by borenet@google.com
6 years, 8 months ago (2014-04-09 18:18:38 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/borenet@google.com/189913020/180001
6 years, 8 months ago (2014-04-09 18:20:35 UTC) #27
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-09 18:20:38 UTC) #28
commit-bot: I haz the power
Failed to apply patch for depot_tools/gclient_scm.py: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 8 months ago (2014-04-09 18:20:39 UTC) #29
borenet
The CQ bit was checked by borenet@google.com
6 years, 8 months ago (2014-04-09 19:00:03 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/borenet@google.com/189913020/200001
6 years, 8 months ago (2014-04-09 19:05:41 UTC) #31
commit-bot: I haz the power
6 years, 8 months ago (2014-04-09 19:09:09 UTC) #32
Message was sent while issue was closed.
Change committed as 262761

Powered by Google App Engine
This is Rietveld 408576698