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

Unified Diff: gclient_utils.py

Issue 546022: gclient: git relative url implementation (Closed)
Patch Set: Created 10 years, 11 months 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
« no previous file with comments | « gclient_scm.py ('k') | tests/gclient_scm_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gclient_utils.py
diff --git a/gclient_utils.py b/gclient_utils.py
index 5068563e980627b4a02059ebb199fe7890fa9653..3c62afb99deba7c6d40656ca951a9e69eb50be79 100644
--- a/gclient_utils.py
+++ b/gclient_utils.py
@@ -71,17 +71,6 @@ def SplitUrlRevision(url):
return tuple(components)
-def FullUrlFromRelative(base_url, url):
- # Find the forth '/' and strip from there. A bit hackish.
- return '/'.join(base_url.split('/')[:4]) + url
-
-
-def FullUrlFromRelative2(base_url, url):
- # Strip from last '/'
- # Equivalent to unix basename
- return base_url[:base_url.rfind('/')] + url
-
-
def ParseXML(output):
try:
return xml.dom.minidom.parseString(output)
« no previous file with comments | « gclient_scm.py ('k') | tests/gclient_scm_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698