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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 class Patcher(object): 5 class Patcher(object):
6 def GetPatchedFiles(self, version=None): 6 def GetPatchedFiles(self, version=None):
7 ''' Returns patched files as(added_files, deleted_files, modified_files) 7 '''Returns patched files as(added_files, deleted_files, modified_files)
8 from the patchset specified by |version|. 8 from the patchset specified by |version|.
9 ''' 9 '''
10 raise NotImplementedError() 10 raise NotImplementedError(self.__class__)
11 11
12 def GetVersion(self): 12 def GetVersion(self):
13 ''' Returns patch version. Returns None when nothing is patched by the 13 '''Returns patch version. Returns None when nothing is patched by the
14 patcher. 14 patcher.
15 ''' 15 '''
16 raise NotImplementedError() 16 raise NotImplementedError(self.__class__)
17 17
18 def Apply(self, paths, file_system, binary, version=None): 18 def Apply(self, paths, file_system, binary, version=None):
19 ''' Apply the patch to added/modified files. Returns Future with patched 19 '''Apply the patch to added/modified files. Returns Future with patched
20 data. Throws FileNotFoundError if |paths| contains deleted files. 20 data. Throws FileNotFoundError if |paths| contains deleted files.
21 ''' 21 '''
22 raise NotImplementedError() 22 raise NotImplementedError(self.__class__)
23
24 def GetIdentity(self):
25 '''Returns a string that identifies this patch. Typically it would be the
26 codereview server's ID for this patch.
27 '''
28 raise NotImplementedError(self.__class__)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698