OLD | NEW |
---|---|
(Empty) | |
1 # Copyright 2014 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 | |
6 # pylint: disable=E0711, W0613, R0201 | |
7 class Repository(object): # pragma: no cover | |
stgao
2016/10/13 05:47:32
I'd keep this interface. Sharu is working on an im
wrengr
2016/10/14 18:33:14
In that case I'd call the base class GitRepository
stgao
2016/10/17 17:31:43
I love the new names GitRepository, GitilesReposit
stgao
2016/10/17 17:48:15
Regarding __call__, I like this good idea if the c
wrengr
2016/10/27 17:28:00
Done.
| |
8 """An interface for source code repository.""" | |
9 | |
10 def GetChangeLog(self, revision): | |
11 """Returns the change log of the given revision.""" | |
12 raise NotImplemented() | |
13 | |
14 def GetChangeLogs(self, start_revision, end_revision, n=1000): | |
15 """Returns change log list in (start_revision, end_revision].""" | |
16 raise NotImplemented() | |
17 | |
18 def GetChangeDiff(self, revision): | |
19 """Returns the diff of the given revision.""" | |
20 raise NotImplemented() | |
21 | |
22 def GetBlame(self, path, revision): | |
23 """Returns blame of the file at ``path`` of the given revision.""" | |
24 raise NotImplemented() | |
25 | |
26 def GetSource(self, path, revision): | |
27 """Returns source code of the file at ``path`` of the given revision.""" | |
28 raise NotImplemented() | |
OLD | NEW |