| 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)
|
|
|