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

Unified Diff: chrome/common/extensions/docs/server2/subversion_fetcher.py

Issue 10546078: Extension docs server: APIDataSource (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: FetcherCache Created 8 years, 6 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
Index: chrome/common/extensions/docs/server2/subversion_fetcher.py
diff --git a/chrome/common/extensions/docs/server2/subversion_fetcher.py b/chrome/common/extensions/docs/server2/subversion_fetcher.py
index 9a6179d199671bc65999428c21fd7bbaaeba2953..84ffb04d2eb0ac7cde8e620812b27237300bf399 100644
--- a/chrome/common/extensions/docs/server2/subversion_fetcher.py
+++ b/chrome/common/extensions/docs/server2/subversion_fetcher.py
@@ -2,21 +2,21 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-SUBVERSION_URL = 'http://src.chromium.org/viewvc/chrome/'
-TRUNK_URL = SUBVERSION_URL + 'trunk/'
-BRANCH_URL = SUBVERSION_URL + 'branches/'
+SUBVERSION_URL = 'http://src.chromium.org/viewvc/chrome'
+TRUNK_URL = SUBVERSION_URL + '/trunk'
+BRANCH_URL = SUBVERSION_URL + '/branches'
class SubversionFetcher(object):
"""Class to fetch resources from src.chromium.org.
"""
def __init__(self, branch, base_path, url_fetcher):
- self._base_path = self._GetURLFromBranch(branch) + base_path
+ self._base_path = self._GetURLFromBranch(branch) + '/' + base_path
self._url_fetcher = url_fetcher
def _GetURLFromBranch(self, branch):
if branch == 'trunk':
- return TRUNK_URL + 'src/'
- return BRANCH_URL + branch + '/src/'
+ return TRUNK_URL + '/src'
+ return BRANCH_URL + '/' + branch + '/src'
def FetchResource(self, path):
- return self._url_fetcher.fetch(self._base_path + path)
+ return self._url_fetcher.fetch(self._base_path + '/' + path)

Powered by Google App Engine
This is Rietveld 408576698