summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/docs/server2/patcher.py
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/extensions/docs/server2/patcher.py')
-rw-r--r--chrome/common/extensions/docs/server2/patcher.py18
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__)