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