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

Side by Side Diff: appengine/findit/lib/gitiles/git_repository.py

Issue 2344443005: [Findit] Factoring the gitiles (etc) stuff out into its own directory (Closed)
Patch Set: reordering imports Created 4 years, 1 month 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
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 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 5
6 # pylint: disable=E0711, W0613, R0201 6 # pylint: disable=E0711, W0613, R0201
7 class Repository(object): # pragma: no cover 7 class GitRepository(object): # pragma: no cover
8 """An interface for source code repository.""" 8 """An interface for access to a Git repository."""
9 9
10 def GetChangeLog(self, revision): 10 def GetChangeLog(self, revision):
11 """Returns the change log of the given revision.""" 11 """Returns the change log of the given revision."""
12 raise NotImplemented() 12 raise NotImplemented()
13 13
14 def GetChangeLogs(self, start_revision, end_revision, n=1000): 14 def GetChangeLogs(self, start_revision, end_revision, n=1000):
15 """Returns change log list in (start_revision, end_revision].""" 15 """Returns change log list in (start_revision, end_revision]."""
16 raise NotImplemented() 16 raise NotImplemented()
17 17
18 def GetChangeDiff(self, revision): 18 def GetChangeDiff(self, revision):
19 """Returns the diff of the given revision.""" 19 """Returns the diff of the given revision."""
20 raise NotImplemented() 20 raise NotImplemented()
21 21
22 def GetBlame(self, path, revision): 22 def GetBlame(self, path, revision):
23 """Returns blame of the file at ``path`` of the given revision.""" 23 """Returns blame of the file at ``path`` of the given revision."""
24 raise NotImplemented() 24 raise NotImplemented()
25 25
26 def GetSource(self, path, revision): 26 def GetSource(self, path, revision):
27 """Returns source code of the file at ``path`` of the given revision.""" 27 """Returns source code of the file at ``path`` of the given revision."""
28 raise NotImplemented() 28 raise NotImplemented()
OLDNEW
« no previous file with comments | « appengine/findit/lib/gitiles/diff.py ('k') | appengine/findit/lib/gitiles/gitiles_repository.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698