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

Issue 52663008: Add a new gclient-new-workdir script which clones an existing gclient working directory much like g… (Closed)

Created:
7 years, 1 month ago by atreat
Modified:
7 years, 1 month ago
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, iannucci+depot_tools_chromium.org, ilevy-cc_chromium.org, lgombos, Inactive
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Visibility:
Public.

Description

Add a new gclient-new-workdir script which clones an existing gclient working directory much like git-new-workdir, but takes into account all sub projects as well. BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=232992

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix according to comments #

Total comments: 13

Patch Set 3 : More cleanup #

Patch Set 4 : Further fixes #

Total comments: 2

Patch Set 5 : Fixed up again #

Patch Set 6 : Fix for PyLint in unused variable 'files' in os.walk #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -0 lines) Patch
A gclient-new-workdir.py View 1 2 3 4 5 1 chunk +95 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
atreat
Please have a look. My python is a bit rusty, but this works for me ...
7 years, 1 month ago (2013-11-04 19:55:00 UTC) #1
iannucci
Hm. If there is interest in this sort of thing, I would highly recommend extending ...
7 years, 1 month ago (2013-11-04 20:10:12 UTC) #2
atreat
On 2013/11/04 20:10:12, iannucci wrote: > Hm. If there is interest in this sort of ...
7 years, 1 month ago (2013-11-04 20:13:37 UTC) #3
iannucci
On 2013/11/04 20:13:37, atreat wrote: > On 2013/11/04 20:10:12, iannucci wrote: > > Hm. If ...
7 years, 1 month ago (2013-11-04 20:14:51 UTC) #4
M-A Ruel
I know next to nothing to gclient cache dir, I'd recommend Robbie to do the ...
7 years, 1 month ago (2013-11-04 20:16:01 UTC) #5
iannucci
https://codereview.chromium.org/52663008/diff/1/gclient-new-workdir.py File gclient-new-workdir.py (right): https://codereview.chromium.org/52663008/diff/1/gclient-new-workdir.py#newcode15 gclient-new-workdir.py:15: if len(argv) < 3: also check if not enough ...
7 years, 1 month ago (2013-11-04 21:40:29 UTC) #6
atreat
On 2013/11/04 21:40:29, iannucci wrote: Thanks for the review! Here is an updated patch with ...
7 years, 1 month ago (2013-11-04 22:12:10 UTC) #7
iannucci
https://codereview.chromium.org/52663008/diff/100001/gclient-new-workdir.py File gclient-new-workdir.py (right): https://codereview.chromium.org/52663008/diff/100001/gclient-new-workdir.py#newcode15 gclient-new-workdir.py:15: def parse_options(argv): style nit: 2 lines between top-level statements ...
7 years, 1 month ago (2013-11-04 22:30:42 UTC) #8
atreat
https://codereview.chromium.org/52663008/diff/100001/gclient-new-workdir.py File gclient-new-workdir.py (right): https://codereview.chromium.org/52663008/diff/100001/gclient-new-workdir.py#newcode57 gclient-new-workdir.py:57: make_workdir(os.path.join(root, name), os.path.join(workdir, name)) On 2013/11/04 22:30:43, iannucci wrote: ...
7 years, 1 month ago (2013-11-04 22:51:35 UTC) #9
atreat
Here is a newer version addressing comments. Thanks!
7 years, 1 month ago (2013-11-04 22:53:32 UTC) #10
iannucci
https://codereview.chromium.org/52663008/diff/100001/gclient-new-workdir.py File gclient-new-workdir.py (right): https://codereview.chromium.org/52663008/diff/100001/gclient-new-workdir.py#newcode75 gclient-new-workdir.py:75: make_symlink(repository, new_workdir, "svn") On 2013/11/04 22:51:35, atreat wrote: > ...
7 years, 1 month ago (2013-11-04 22:54:50 UTC) #11
atreat
On 2013/11/04 22:54:50, iannucci wrote: > https://codereview.chromium.org/52663008/diff/100001/gclient-new-workdir.py > File gclient-new-workdir.py (right): > > https://codereview.chromium.org/52663008/diff/100001/gclient-new-workdir.py#newcode75 > ...
7 years, 1 month ago (2013-11-04 22:56:37 UTC) #12
iannucci
On 2013/11/04 22:56:37, atreat wrote: > On 2013/11/04 22:54:50, iannucci wrote: > > https://codereview.chromium.org/52663008/diff/100001/gclient-new-workdir.py > ...
7 years, 1 month ago (2013-11-04 22:59:42 UTC) #13
atreat
On 2013/11/04 22:59:42, iannucci wrote: > Just do one line per entry > > GIT_DIRECTORY_WHITELIST ...
7 years, 1 month ago (2013-11-04 23:10:37 UTC) #14
iannucci
lgtm % 2nd comment https://codereview.chromium.org/52663008/diff/220001/gclient-new-workdir.py File gclient-new-workdir.py (right): https://codereview.chromium.org/52663008/diff/220001/gclient-new-workdir.py#newcode56 gclient-new-workdir.py:56: os.path.join(workdir, ".git")) This loop is ...
7 years, 1 month ago (2013-11-05 00:25:54 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/adam.treat@samsung.com/52663008/240001
7 years, 1 month ago (2013-11-05 15:08:28 UTC) #16
commit-bot: I haz the power
Presubmit check for 52663008-240001 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 1 month ago (2013-11-05 15:10:00 UTC) #17
atreat
On 2013/11/05 15:10:00, I haz the power (commit-bot) wrote: > ** Presubmit ERRORS ** > ...
7 years, 1 month ago (2013-11-05 15:13:32 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/adam.treat@samsung.com/52663008/290001
7 years, 1 month ago (2013-11-05 15:16:35 UTC) #19
commit-bot: I haz the power
7 years, 1 month ago (2013-11-05 15:18:15 UTC) #20
Message was sent while issue was closed.
Change committed as 232992

Powered by Google App Engine
This is Rietveld 408576698