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

Issue 1547026: Extend From() to allow importing from different mappings. Also... (Closed)

Created:
10 years, 8 months ago by tony
Modified:
9 years, 7 months ago
Reviewers:
M-A Ruel
CC:
chromium-reviews, darin (slow to review)
Visibility:
Public.

Description

Extend From() to allow importing from different mappings. Also allow From() to import when the URL is relative. For example, if src/DEPS is: deps = { 'base' = 'svn://svn/base@123', 'main' = From('base', 'src/main'), } and base/DEPS is: deps = { 'src/main': '/main@100', } This will checkout svn://svn/main@100 in main. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=44044

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+228 lines, -10 lines) Patch
M gclient.py View 1 2 5 chunks +36 lines, -7 lines 0 comments Download
M tests/gclient_test.py View 1 1 chunk +192 lines, -3 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
tony
This is the second set of changes to gclient for https://bugs.webkit.org/show_bug.cgi?id=36578
10 years, 8 months ago (2010-04-08 07:50:38 UTC) #1
M-A Ruel
lgtm with a few small changes. http://codereview.chromium.org/1547026/diff/1/3 File gclient.py (right): http://codereview.chromium.org/1547026/diff/1/3#newcode448 gclient.py:448: if type(sub_deps_base_url) != ...
10 years, 8 months ago (2010-04-08 13:55:50 UTC) #2
tony
10 years, 8 months ago (2010-04-09 02:17:45 UTC) #3
Thanks!

http://codereview.chromium.org/1547026/diff/1/3
File gclient.py (right):

http://codereview.chromium.org/1547026/diff/1/3#newcode448
gclient.py:448: if type(sub_deps_base_url) != str:
On 2010/04/08 13:55:51, Marc-Antoine Ruel wrote:
> if isinstance(sub_deps_base_url, basestring):

Done.

http://codereview.chromium.org/1547026/diff/1/3#newcode801
gclient.py:801: sub_deps = self._ParseSolutionDeps(deps[d].module_name, content,
{}, False)
On 2010/04/08 13:55:51, Marc-Antoine Ruel wrote:
> 80 cols

Done.

http://codereview.chromium.org/1547026/diff/1/3#newcode802
gclient.py:802: sub_deps_base_url = deps[deps[d].module_name]
On 2010/04/08 13:55:51, Marc-Antoine Ruel wrote:
> That changes the logic a bit, I'd like a comment about why look at the global
> level.

Done.

Powered by Google App Engine
This is Rietveld 408576698