diff options
author | kalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-19 20:44:04 +0000 |
---|---|---|
committer | kalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-19 20:44:04 +0000 |
commit | 4105bf75ab0b68f2a9a117cca2e52ac01fb12f77 (patch) | |
tree | e5e7c21a1e51c66b4382aa4da057010c97001894 /chrome/common/extensions/docs/server2/patcher.py | |
parent | bd931cfa493b88c047e3a0720620331379cd7b4f (diff) | |
download | chromium_src-4105bf75ab0b68f2a9a117cca2e52ac01fb12f77.zip chromium_src-4105bf75ab0b68f2a9a117cca2e52ac01fb12f77.tar.gz chromium_src-4105bf75ab0b68f2a9a117cca2e52ac01fb12f77.tar.bz2 |
Docserver: move to a single version served from trunk. Permanently redirect requests
from any channel to the non-channel version (served from trunk). Improve the
redirect logic in other ways. Fix a few bugs in caching classes that cause this all not
to work. Replace the channel switcher (now moot) with a platform switcher.
R=cduvall@chromium.org
BUG=233978
NOTRY=true
Review URL: https://chromiumcodereview.appspot.com/15087006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212646 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/docs/server2/patcher.py')
-rw-r--r-- | chrome/common/extensions/docs/server2/patcher.py | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/chrome/common/extensions/docs/server2/patcher.py b/chrome/common/extensions/docs/server2/patcher.py index 34fd17f..57d1e13 100644 --- a/chrome/common/extensions/docs/server2/patcher.py +++ b/chrome/common/extensions/docs/server2/patcher.py @@ -4,19 +4,25 @@ class Patcher(object): def GetPatchedFiles(self, version=None): - ''' Returns patched files as(added_files, deleted_files, modified_files) + '''Returns patched files as(added_files, deleted_files, modified_files) from the patchset specified by |version|. ''' - raise NotImplementedError() + raise NotImplementedError(self.__class__) def GetVersion(self): - ''' Returns patch version. Returns None when nothing is patched by the + '''Returns patch version. Returns None when nothing is patched by the patcher. ''' - raise NotImplementedError() + raise NotImplementedError(self.__class__) def Apply(self, paths, file_system, binary, version=None): - ''' Apply the patch to added/modified files. Returns Future with patched + '''Apply the patch to added/modified files. Returns Future with patched data. Throws FileNotFoundError if |paths| contains deleted files. ''' - raise NotImplementedError() + raise NotImplementedError(self.__class__) + + def GetIdentity(self): + '''Returns a string that identifies this patch. Typically it would be the + codereview server's ID for this patch. + ''' + raise NotImplementedError(self.__class__) |