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

Issue 183283003: Another attempt: gclient: delete mismatching checkouts (Closed)

Created:
6 years, 9 months ago by borenet
Modified:
6 years, 9 months ago
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

Another attempt: gclient: delete mismatching checkouts Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=255930

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

Patch Set 2 : More minimal approach #

Total comments: 2

Patch Set 3 : Add GitWrapper tests for conflicting directories #

Total comments: 1

Patch Set 4 : Update smoketests: remove git-svn test, add Skia DEPS transition test #

Patch Set 5 : Remove some unnecessary changes #

Total comments: 7

Patch Set 6 : Let existing logic handle deletion in SVN update() #

Patch Set 7 : retry upload #

Patch Set 8 : Remove IsGit #

Patch Set 9 : retry upload #

Total comments: 2

Patch Set 10 : Use parens #

Patch Set 11 : rebase #

Total comments: 7

Patch Set 12 : Address iannucci's comments #

Total comments: 2

Patch Set 13 : Fix for unmanaged git-svn, remove commented lines #

Unified diffs Side-by-side diffs Delta from patch set Stats (+420 lines, -36 lines) Patch
M gclient_scm.py View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +35 lines, -19 lines 0 comments Download
M scm.py View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M testing_support/fake_repos.py View 1 2 3 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 11 12 12 chunks +129 lines, -15 lines 0 comments Download
M tests/gclient_smoketest.py View 1 2 3 4 2 chunks +167 lines, -1 line 0 comments Download
M tests/scm_unittest.py View 2 3 4 5 6 7 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
borenet
Here's another try. Probably need to add a gclient_scm_test for the git version of the ...
6 years, 9 months ago (2014-02-27 22:07:35 UTC) #1
borenet
6 years, 9 months ago (2014-02-28 15:04:15 UTC) #2
borenet
Patch set 3 adds tests for the relevant cases in GitWrapper.update. I'm going to modify ...
6 years, 9 months ago (2014-02-28 16:52:23 UTC) #3
borenet
Patch set 5 adds a smoketest for the Skia DEPS transition. I think this is ...
6 years, 9 months ago (2014-02-28 21:54:23 UTC) #4
szager1
https://codereview.chromium.org/183283003/diff/80001/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/183283003/diff/80001/gclient_scm.py#newcode1156 gclient_scm.py:1156: if scm.GIT.IsGit(self.checkout_path): Isn't the scm.GIT.IsGit check redundant? Can't you ...
6 years, 9 months ago (2014-02-28 22:17:52 UTC) #5
borenet
https://codereview.chromium.org/183283003/diff/80001/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/183283003/diff/80001/gclient_scm.py#newcode1156 gclient_scm.py:1156: if scm.GIT.IsGit(self.checkout_path): On 2014/02/28 22:17:52, szager1 wrote: > Isn't ...
6 years, 9 months ago (2014-03-03 18:31:10 UTC) #6
szager1
https://codereview.chromium.org/183283003/diff/80001/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/183283003/diff/80001/gclient_scm.py#newcode1156 gclient_scm.py:1156: if scm.GIT.IsGit(self.checkout_path): On 2014/03/03 18:31:11, borenet wrote: > On ...
6 years, 9 months ago (2014-03-03 18:50:40 UTC) #7
szager1
https://codereview.chromium.org/183283003/diff/80001/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/183283003/diff/80001/gclient_scm.py#newcode1156 gclient_scm.py:1156: if scm.GIT.IsGit(self.checkout_path): On 2014/03/03 18:50:40, szager1 wrote: > On ...
6 years, 9 months ago (2014-03-03 18:54:20 UTC) #8
borenet
https://codereview.chromium.org/183283003/diff/80001/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/183283003/diff/80001/gclient_scm.py#newcode1156 gclient_scm.py:1156: if scm.GIT.IsGit(self.checkout_path): On 2014/03/03 18:54:20, szager1 wrote: > On ...
6 years, 9 months ago (2014-03-03 19:14:21 UTC) #9
szager1
On 2014/03/03 19:14:21, borenet wrote: > https://codereview.chromium.org/183283003/diff/80001/gclient_scm.py > File gclient_scm.py (right): > > https://codereview.chromium.org/183283003/diff/80001/gclient_scm.py#newcode1156 > ...
6 years, 9 months ago (2014-03-03 19:44:48 UTC) #10
borenet
Uploaded patch sets 6-9. https://codereview.chromium.org/183283003/diff/80001/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/183283003/diff/80001/gclient_scm.py#newcode1156 gclient_scm.py:1156: if scm.GIT.IsGit(self.checkout_path): On 2014/03/03 19:14:22, ...
6 years, 9 months ago (2014-03-03 21:09:04 UTC) #11
szager1
lgtm with one final nit. https://codereview.chromium.org/183283003/diff/150001/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/183283003/diff/150001/gclient_scm.py#newcode1171 gclient_scm.py:1171: if options.force or options.reset ...
6 years, 9 months ago (2014-03-03 21:20:16 UTC) #12
borenet
Uploaded patch set 10. https://codereview.chromium.org/183283003/diff/150001/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/183283003/diff/150001/gclient_scm.py#newcode1171 gclient_scm.py:1171: if options.force or options.reset and ...
6 years, 9 months ago (2014-03-03 21:26:51 UTC) #13
borenet
At Chase's suggestion, adding mmoss@ since I fear gclient's potential for dealing damage.
6 years, 9 months ago (2014-03-05 21:31:04 UTC) #14
iannucci
omg, gclient is so painful :( https://chromiumcodereview.appspot.com/183283003/diff/190001/gclient_scm.py File gclient_scm.py (right): https://chromiumcodereview.appspot.com/183283003/diff/190001/gclient_scm.py#newcode333 gclient_scm.py:333: return self._Capture(['rev-parse', '--verify', ...
6 years, 9 months ago (2014-03-05 22:04:07 UTC) #15
borenet
https://codereview.chromium.org/183283003/diff/190001/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/183283003/diff/190001/gclient_scm.py#newcode333 gclient_scm.py:333: return self._Capture(['rev-parse', '--verify', 'HEAD']) On 2014/03/05 22:04:07, iannucci wrote: ...
6 years, 9 months ago (2014-03-06 14:27:19 UTC) #16
borenet
https://codereview.chromium.org/183283003/diff/190001/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/183283003/diff/190001/gclient_scm.py#newcode333 gclient_scm.py:333: return self._Capture(['rev-parse', '--verify', 'HEAD']) On 2014/03/06 14:27:19, borenet wrote: ...
6 years, 9 months ago (2014-03-06 18:04:49 UTC) #17
iannucci
lgtm https://codereview.chromium.org/183283003/diff/190001/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/183283003/diff/190001/gclient_scm.py#newcode333 gclient_scm.py:333: return self._Capture(['rev-parse', '--verify', 'HEAD']) On 2014/03/06 18:04:49, borenet ...
6 years, 9 months ago (2014-03-07 20:31:19 UTC) #18
borenet
Uploaded patch set 13 https://codereview.chromium.org/183283003/diff/190001/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/183283003/diff/190001/gclient_scm.py#newcode333 gclient_scm.py:333: return self._Capture(['rev-parse', '--verify', 'HEAD']) On ...
6 years, 9 months ago (2014-03-07 21:50:12 UTC) #19
iannucci
OK, lgtm. You'll land on monday 8 AM EST and watch the trees ?
6 years, 9 months ago (2014-03-07 22:00:34 UTC) #20
borenet
On 2014/03/07 22:00:34, iannucci wrote: > OK, lgtm. You'll land on monday 8 AM EST ...
6 years, 9 months ago (2014-03-07 22:01:06 UTC) #21
DaleCurtis
Peanut gallery: Seems like it'd be easier to land this during off-hours (e.g. the weekend).
6 years, 9 months ago (2014-03-07 22:27:51 UTC) #22
iannucci
On 2014/03/07 22:27:51, DaleCurtis wrote: > Peanut gallery: Seems like it'd be easier to land ...
6 years, 9 months ago (2014-03-07 23:27:43 UTC) #23
borenet
The CQ bit was checked by borenet@google.com
6 years, 9 months ago (2014-03-10 12:44:18 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/borenet@google.com/183283003/220001
6 years, 9 months ago (2014-03-10 12:44:41 UTC) #25
commit-bot: I haz the power
Change committed as 255930
6 years, 9 months ago (2014-03-10 12:57:28 UTC) #26
Nico
6 years, 9 months ago (2014-03-10 18:13:18 UTC) #27
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/192323006/ by thakis@chromium.org.

The reason for reverting is: Broke `gclient sync` for me, failing with:

Error: 1> Can't update/checkout /Volumes/MacintoshHD2/src/chrome-git/src if an
unversioned directory is present. Delete the directory and try again.


For someone else, it broke it with:

% gclient sync

________ unmanaged solution; skipping src

Error: Command svn info --xml returned non-zero exit status 1 in
/Users/pawliger/chromium/src/.

<?xml version="1.0" encoding="UTF-8"?>

<info>

svn: E155007: '/Users/pawliger/chromium/src' is not a working copy.

Powered by Google App Engine
This is Rietveld 408576698