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

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

Issue 15087006: Docserver: there is only one. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: epic rebase Created 7 years, 5 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/patcher.py
diff --git a/chrome/common/extensions/docs/server2/patcher.py b/chrome/common/extensions/docs/server2/patcher.py
index 34fd17fbd8910f31b920966a33d6a8f75f4d3a62..57d1e137dd89fd0be53b05ab61ebdc3833582782 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__)

Powered by Google App Engine
This is Rietveld 408576698