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

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

Issue 2137803002: Remove unnecessary pass statements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | third_party/WebKit/Tools/Scripts/webkitpy/common/message_pool.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 return 5678 90 return 5678
91 if git_commit == '624caaaaaa': 91 if git_commit == '624caaaaaa':
92 return 10000 92 return 10000
93 return None 93 return None
94 94
95 def timestamp_of_revision(self, path, revision): 95 def timestamp_of_revision(self, path, revision):
96 return '2013-02-01 08:48:05 +0000' 96 return '2013-02-01 08:48:05 +0000'
97 97
98 def commit_locally_with_message(self, message): 98 def commit_locally_with_message(self, message):
99 self._local_commits.append([message]) 99 self._local_commits.append([message])
100 pass
101 100
102 def local_commits(self): 101 def local_commits(self):
103 """For testing purposes, returns the internal recording of commits made via commit_locally_with_message. 102 """For testing purposes, returns the internal recording of commits made via commit_locally_with_message.
104 Format as [ message, commit_all_working_directory_changes, author ].""" 103 Format as [ message, commit_all_working_directory_changes, author ]."""
105 return self._local_commits 104 return self._local_commits
106 105
107 def delete(self, path): 106 def delete(self, path):
108 return self.delete_list([path]) 107 return self.delete_list([path])
109 108
110 def delete_list(self, paths): 109 def delete_list(self, paths):
111 if not self._filesystem: 110 if not self._filesystem:
112 return 111 return
113 for path in paths: 112 for path in paths:
114 if self._filesystem.exists(path): 113 if self._filesystem.exists(path):
115 self._filesystem.remove(path) 114 self._filesystem.remove(path)
116 115
117 def move(self, origin, destination): 116 def move(self, origin, destination):
118 if self._filesystem: 117 if self._filesystem:
119 self._filesystem.move(self.absolute_path(origin), self.absolute_path (destination)) 118 self._filesystem.move(self.absolute_path(origin), self.absolute_path (destination))
120 119
121 def changed_files(self): 120 def changed_files(self):
122 return [] 121 return []
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Tools/Scripts/webkitpy/common/message_pool.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698