Chromium Code Reviews
|
| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 class Patcher(object): | |
| 6 def GetPatchedFiles(self, version=None): | |
| 7 ''' Returns (added_files, deleted_files, modified_files). | |
|
not at google - send to devlin
2013/05/11 20:39:53
Comment what version= means.
方觉(Fang Jue)
2013/05/12 03:01:47
Done.
| |
| 8 ''' | |
| 9 raise NotImplementedError() | |
| 10 | |
| 11 def GetVersion(self): | |
| 12 ''' Returns patch version. Returns None when nothing is patched by the | |
| 13 patcher. | |
| 14 ''' | |
| 15 raise NotImplementedError() | |
| 16 | |
| 17 def Apply(self, paths, file_system, binary, version=None): | |
|
not at google - send to devlin
2013/05/11 20:39:53
I can't see file_system being used anywhere
方觉(Fang Jue)
2013/05/12 03:01:47
No. It's not actually used because RietveldPatcher
| |
| 18 ''' Apply the patch to added/modified files. Returns Future with patched | |
| 19 data. Throws FileNotFoundError if |paths| contains deleted files. | |
|
not at google - send to devlin
2013/05/11 20:39:53
comment what version= means.
P.S. I was under the
方觉(Fang Jue)
2013/05/12 03:01:47
Yes. And trying to fetch tarball for an issue with
| |
| 20 ''' | |
| 21 raise NotImplementedError() | |
| OLD | NEW |