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

Issue 500015: gclient: implement a less hacky relative URL implementation (Closed)

Created:
11 years ago by Mandeep Singh Baines
Modified:
9 years, 7 months ago
Reviewers:
M-A Ruel, djmm
CC:
chromium-reviews_googlegroups.com, M-A Ruel
Visibility:
Public.

Description

gclient: implement a less hacky relative URL implementation Doing something like basename when concatenating base_url with relative url. Added use_relative_urls2 to enable switching between old implementation and new implementation. Once the old implementation is deprecated we can remove the use_relative_urls2. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=34563

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -35 lines) Patch
M gclient.py View 2 chunks +9 lines, -4 lines 2 comments Download
M gclient_scm.py View 1 chunk +0 lines, -4 lines 0 comments Download
M gclient_utils.py View 1 chunk +11 lines, -0 lines 2 comments Download
M tests/gclient_scm_test.py View 3 chunks +2 lines, -11 lines 0 comments Download
M tests/gclient_test.py View 4 chunks +13 lines, -16 lines 1 comment Download
M tests/gclient_utils_test.py View 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Mandeep Singh Baines
11 years ago (2009-12-15 03:28:02 UTC) #1
djmm
lgtm On Mon, Dec 14, 2009 at 7:28 PM, <msb@chromium.org> wrote: > Reviewers: Marc-Antoine Ruel, ...
11 years ago (2009-12-15 05:59:21 UTC) #2
M-A Ruel
Sorry I'm a bit late, I'd like to have your opinion on my comment. http://codereview.chromium.org/500015/diff/1/2 ...
11 years ago (2009-12-15 18:49:42 UTC) #3
Mandeep Singh Baines
11 years ago (2009-12-15 20:54:30 UTC) #4
http://codereview.chromium.org/500015/diff/1/2
File gclient.py (right):

http://codereview.chromium.org/500015/diff/1/2#newcode521
gclient.py:521: local_scope = {}
On 2009/12/15 18:49:42, Marc-Antoine Ruel wrote:
> I would have preferred to have this code moved into a function so it doesn't
> duplicate line 441.

Good idea. I'll send out a CL to do this.

http://codereview.chromium.org/500015/diff/1/4
File gclient_utils.py (right):

http://codereview.chromium.org/500015/diff/1/4#newcode46
gclient_utils.py:46: def FullUrlFromRelative2(base_url, url):
On 2009/12/15 18:49:42, Marc-Antoine Ruel wrote:
> Frankly, I would have prefered it to be SCM-dependent. The main issue is that
> git cannot have sub-directory checkout so using this is *always* appropriate
> while the reverse is not true for FullUrlFromRelative(). Hence I think this
> should be moved back to gclient_scm.py

k, I'll send out a CL to do that. I don't want to revert this change as it will
break the ChromiumOS build.

Powered by Google App Engine
This is Rietveld 408576698