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

Issue 19359002: Allow gclient clone in non-empty directories (Closed)

Created:
7 years, 5 months ago by Isaac (away)
Modified:
7 years, 5 months ago
Reviewers:
iannucci, M-A Ruel
CC:
chromium-reviews, Dirk Pranke, M-A Ruel
Visibility:
Public.

Description

Allow gclient clone in non-empty directories Add an option in DEPS files to clone a project into a temp dir and then copy into expected final dir. This allows checking out a git repo into a folder which is non-empty. It is useful for projects that are embedded in src/ but want to specify the revision of src/ in the embedded project (such as android private). BUG=165280 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=212720

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Total comments: 7

Patch Set 3 : bug fixes #

Total comments: 4

Patch Set 4 : rebase, fixed M-A nits. #

Patch Set 5 : _Run -> _Capture. smoketests pass :-) #

Total comments: 8

Patch Set 6 : addressed iannucci nits, switched back to _Run and fixed tests. #

Total comments: 2

Patch Set 7 : rewrite retry loop #

Total comments: 4

Patch Set 8 : fixed another round of nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -114 lines) Patch
M gclient_scm.py View 1 2 3 4 5 6 7 5 chunks +33 lines, -70 lines 0 comments Download
M tests/gclient_scm_test.py View 1 2 3 2 chunks +0 lines, -16 lines 0 comments Download
M tests/gclient_smoketest.py View 1 2 3 4 5 6 7 11 chunks +58 lines, -28 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Isaac (away)
Initial upload for general review. I still need to write tests / actually run the ...
7 years, 5 months ago (2013-07-16 10:21:25 UTC) #1
M-A Ruel
On 2013/07/16 10:21:25, Isaac wrote: > Initial upload for general review. I still need to ...
7 years, 5 months ago (2013-07-16 13:46:31 UTC) #2
Isaac (away)
ptal
7 years, 5 months ago (2013-07-18 09:47:41 UTC) #3
Isaac (away)
On 2013/07/18 09:47:41, Isaac wrote: > ptal (which is Please Take Another Look, the true ...
7 years, 5 months ago (2013-07-18 09:48:24 UTC) #4
M-A Ruel
https://chromiumcodereview.appspot.com/19359002/diff/5001/gclient_scm.py File gclient_scm.py (right): https://chromiumcodereview.appspot.com/19359002/diff/5001/gclient_scm.py#newcode344 gclient_scm.py:344: (os.path.isdir(self.check_path) and What's check_path? Was this code path ever ...
7 years, 5 months ago (2013-07-18 14:55:04 UTC) #5
Isaac (away)
Still need to fix about 10 gclient_smoketests tests -- robbie could you take a look? ...
7 years, 5 months ago (2013-07-19 20:13:23 UTC) #6
M-A Ruel
Seems fine with me, I'll leave the proper review to Robert. https://chromiumcodereview.appspot.com/19359002/diff/10001/gclient_scm.py File gclient_scm.py (right): ...
7 years, 5 months ago (2013-07-19 20:42:40 UTC) #7
Isaac (away)
https://codereview.chromium.org/19359002/diff/10001/gclient_scm.py File gclient_scm.py (right): https://codereview.chromium.org/19359002/diff/10001/gclient_scm.py#newcode796 gclient_scm.py:796: if not os.path.exists(self.checkout_path): On 2013/07/19 20:42:40, Marc-Antoine Ruel wrote: ...
7 years, 5 months ago (2013-07-19 21:50:28 UTC) #8
iannucci
looks pretty good to me. "I am OK with this" :) Just a couple comments. ...
7 years, 5 months ago (2013-07-19 23:59:07 UTC) #9
iannucci
Oh, also, probably want to rewrite the description too. It will allow cloning to non-empty ...
7 years, 5 months ago (2013-07-20 00:02:59 UTC) #10
Isaac (away)
https://chromiumcodereview.appspot.com/19359002/diff/25001/gclient_scm.py File gclient_scm.py (right): https://chromiumcodereview.appspot.com/19359002/diff/25001/gclient_scm.py#newcode418 gclient_scm.py:418: self._FetchAndReset(revision, file_list, options) On 2013/07/19 23:59:07, iannucci wrote: > ...
7 years, 5 months ago (2013-07-20 00:38:27 UTC) #11
iannucci
https://chromiumcodereview.appspot.com/19359002/diff/15002/gclient_scm.py File gclient_scm.py (right): https://chromiumcodereview.appspot.com/19359002/diff/15002/gclient_scm.py#newcode876 gclient_scm.py:876: print('Retrying...') I'm meaning we should rmtree(tmp_dir) before retrying. Nothing ...
7 years, 5 months ago (2013-07-20 00:45:37 UTC) #12
Isaac (away)
https://chromiumcodereview.appspot.com/19359002/diff/15002/gclient_scm.py File gclient_scm.py (right): https://chromiumcodereview.appspot.com/19359002/diff/15002/gclient_scm.py#newcode876 gclient_scm.py:876: print('Retrying...') On 2013/07/20 00:45:37, iannucci wrote: > I'm meaning ...
7 years, 5 months ago (2013-07-20 00:57:53 UTC) #13
iannucci
lgtm % cleanup thingies https://chromiumcodereview.appspot.com/19359002/diff/42001/gclient_scm.py File gclient_scm.py (left): https://chromiumcodereview.appspot.com/19359002/diff/42001/gclient_scm.py#oldcode417 gclient_scm.py:417: if not self._HasHead(): I think ...
7 years, 5 months ago (2013-07-20 01:35:39 UTC) #14
Isaac (away)
sending to cqw https://chromiumcodereview.appspot.com/19359002/diff/42001/gclient_scm.py File gclient_scm.py (left): https://chromiumcodereview.appspot.com/19359002/diff/42001/gclient_scm.py#oldcode417 gclient_scm.py:417: if not self._HasHead(): On 2013/07/20 01:35:39, ...
7 years, 5 months ago (2013-07-20 01:54:52 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ilevy@chromium.org/19359002/48001
7 years, 5 months ago (2013-07-20 01:55:33 UTC) #16
commit-bot: I haz the power
7 years, 5 months ago (2013-07-20 01:58:09 UTC) #17
Message was sent while issue was closed.
Change committed as 212720

Powered by Google App Engine
This is Rietveld 408576698