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

Unified Diff: gclient_scm.py

Issue 500015: gclient: implement a less hacky relative URL implementation (Closed)
Patch Set: Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: gclient_scm.py
diff --git a/gclient_scm.py b/gclient_scm.py
index a3e902cf64e20044778b1bd293080794c86ffbe9..25b652410423a2a4ea7066f2efe228894069496b 100644
--- a/gclient_scm.py
+++ b/gclient_scm.py
@@ -57,10 +57,6 @@ class SCMWrapper(object):
if self.relpath and self._root_dir:
self.checkout_path = os.path.join(self._root_dir, self.relpath)
- def FullUrlForRelativeUrl(self, url):
- # Find the forth '/' and strip from there. A bit hackish.
- return '/'.join(self.url.split('/')[:4]) + url
-
def RunCommand(self, command, options, args, file_list=None):
# file_list will have all files that are modified appended to it.
if file_list is None:

Powered by Google App Engine
This is Rietveld 408576698