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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/scm/scm_mock.py

Issue 1809723002: Remove optional --commit-author argument from auto-rebaseline script. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 (C) 2011 Google Inc. All rights reserved. 1 # Copyright (C) 2011 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 return 1234 85 return 1234
86 if git_commit == '624c3081c0': 86 if git_commit == '624c3081c0':
87 return 5678 87 return 5678
88 if git_commit == '624caaaaaa': 88 if git_commit == '624caaaaaa':
89 return 10000 89 return 10000
90 return None 90 return None
91 91
92 def timestamp_of_revision(self, path, revision): 92 def timestamp_of_revision(self, path, revision):
93 return '2013-02-01 08:48:05 +0000' 93 return '2013-02-01 08:48:05 +0000'
94 94
95 def commit_locally_with_message(self, message, commit_all_working_directory_ changes=True, author=None): 95 def commit_locally_with_message(self, message, commit_all_working_directory_ changes=True):
96 self._local_commits.append([message, commit_all_working_directory_change s, author]) 96 self._local_commits.append([message, commit_all_working_directory_change s])
97 pass 97 pass
98 98
99 def local_commits(self): 99 def local_commits(self):
100 """For testing purposes, returns the internal recording of commits made via commit_locally_with_message. 100 """For testing purposes, returns the internal recording of commits made via commit_locally_with_message.
101 Format as [ message, commit_all_working_directory_changes, author ].""" 101 Format as [ message, commit_all_working_directory_changes, author ]."""
102 return self._local_commits 102 return self._local_commits
103 103
104 def delete(self, path): 104 def delete(self, path):
105 return self.delete_list([path]) 105 return self.delete_list([path])
106 106
107 def delete_list(self, paths): 107 def delete_list(self, paths):
108 if not self._filesystem: 108 if not self._filesystem:
109 return 109 return
110 for path in paths: 110 for path in paths:
111 if self._filesystem.exists(path): 111 if self._filesystem.exists(path):
112 self._filesystem.remove(path) 112 self._filesystem.remove(path)
113 113
114 def move(self, origin, destination): 114 def move(self, origin, destination):
115 if self._filesystem: 115 if self._filesystem:
116 self._filesystem.move(self.absolute_path(origin), self.absolute_path (destination)) 116 self._filesystem.move(self.absolute_path(origin), self.absolute_path (destination))
117 117
118 def changed_files(self): 118 def changed_files(self):
119 return [] 119 return []
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698