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

Side by Side Diff: appengine/findit/gitiles/change_log.py

Issue 2344443005: [Findit] Factoring the gitiles (etc) stuff out into its own directory (Closed)
Patch Set: rebase-update Created 4 years, 3 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
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 class FileChangeInfo(object): 5 class FileChangeInfo(object):
6 """Represents a file change (add/delete/modify/rename/copy/etc).""" 6 """Represents a file change (add/delete/modify/rename/copy/etc)."""
7 def __init__(self, change_type, old_path, new_path): 7 def __init__(self, change_type, old_path, new_path):
8 self.change_type = change_type 8 self.change_type = change_type
9 self.old_path = old_path 9 self.old_path = old_path
10 self.new_path = new_path 10 self.new_path = new_path
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 for touched_file_info in info['touched_files']: 71 for touched_file_info in info['touched_files']:
72 touched_files.append(FileChangeInfo.FromDict(touched_file_info)) 72 touched_files.append(FileChangeInfo.FromDict(touched_file_info))
73 73
74 return ChangeLog( 74 return ChangeLog(
75 info['author_name'], info['author_email'], info['author_time'], 75 info['author_name'], info['author_email'], info['author_time'],
76 info['committer_name'], info['committer_email'], info['committer_time'], 76 info['committer_name'], info['committer_email'], info['committer_time'],
77 info['revision'], info['commit_position'], info['message'], 77 info['revision'], info['commit_position'], info['message'],
78 touched_files, info['commit_url'], info['code_review_url'], 78 touched_files, info['commit_url'], info['code_review_url'],
79 info['reverted_revision'] 79 info['reverted_revision']
80 ) 80 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698