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

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

Issue 2700283002: rebaseline-cl: Only support local branches, drop Rietveld support. (Closed)
Patch Set: Rebased Created 3 years, 10 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 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 from webkitpy.common.system.filesystem_mock import MockFileSystem 5 from webkitpy.common.system.filesystem_mock import MockFileSystem
6 from webkitpy.common.system.executive_mock import MockExecutive 6 from webkitpy.common.system.executive_mock import MockExecutive
7 7
8 8
9 class MockGit(object): 9 class MockGit(object):
10 10
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 if not self._filesystem: 100 if not self._filesystem:
101 return 101 return
102 for path in paths: 102 for path in paths:
103 if self._filesystem.exists(path): 103 if self._filesystem.exists(path):
104 self._filesystem.remove(path) 104 self._filesystem.remove(path)
105 105
106 def move(self, origin, destination): 106 def move(self, origin, destination):
107 if self._filesystem: 107 if self._filesystem:
108 self._filesystem.move(self.absolute_path(origin), self.absolute_path (destination)) 108 self._filesystem.move(self.absolute_path(origin), self.absolute_path (destination))
109 109
110 def changed_files(self): 110 def changed_files(self, diff_filter='ADM'):
111 return [] 111 return []
112 112
113 def unstaged_changes(self): 113 def unstaged_changes(self):
114 return {} 114 return {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698