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

Unified Diff: appengine/findit/common/blame.py

Issue 2344443005: [Findit] Factoring the gitiles (etc) stuff out into its own directory (Closed)
Patch Set: reordering imports Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | appengine/findit/common/cache_decorator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/common/blame.py
diff --git a/appengine/findit/common/blame.py b/appengine/findit/common/blame.py
deleted file mode 100644
index a44aa88107a9ed77f880dc32d60843018dbd54e7..0000000000000000000000000000000000000000
--- a/appengine/findit/common/blame.py
+++ /dev/null
@@ -1,46 +0,0 @@
-# Copyright 2014 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-
-class Region(object):
- """A region of some (unspecified) file at a (known) revision."""
- def __init__(self, start, count, revision,
- author_name, author_email, author_time):
- self.start = start
- self.count = count
- self.revision = revision
- self.author_name = author_name
- self.author_email = author_email
- self.author_time = author_time
-
- def ToDict(self):
- return {
- 'start': self.start,
- 'count': self.count,
- 'revision': self.revision,
- 'author_name': self.author_name,
- 'author_email': self.author_email,
- 'author_time': self.author_time
- }
-
-
-class Blame(list):
- """A list of regions for a (known) revision of a (known) file."""
- def __init__(self, revision, path):
- super(Blame, self).__init__()
- self.revision = revision
- self.path = path
-
- def AddRegion(self, region):
- self.append(region)
-
- def ToDict(self):
- regions = []
- for region in self:
- regions.append(region.ToDict())
- return {
- 'revision': self.revision,
- 'path': self.path,
- 'regions': regions
- }
« no previous file with comments | « no previous file | appengine/findit/common/cache_decorator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698