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

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

Issue 2590693002: Only add unstaged baseline changes to the git index when rebaselining. (Closed)
Patch Set: rebaseline-cl: Abort if there are unstaged baseline changes. Created 3 years, 12 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) 2009, Google Inc. All rights reserved. 1 # Copyright (c) 2009, Google Inc. All rights reserved.
2 # Copyright (c) 2009 Apple Inc. All rights reserved. 2 # Copyright (c) 2009 Apple Inc. All rights reserved.
3 # 3 #
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 def delete_list(self, paths): 115 def delete_list(self, paths):
116 self._subclass_must_implement() 116 self._subclass_must_implement()
117 117
118 def move(self, origin, destination): 118 def move(self, origin, destination):
119 self._subclass_must_implement() 119 self._subclass_must_implement()
120 120
121 def exists(self, path): 121 def exists(self, path):
122 self._subclass_must_implement() 122 self._subclass_must_implement()
123 123
124 def unstaged_changes(self):
125 self._subclass_must_implement()
126
124 def changed_files(self, git_commit=None): 127 def changed_files(self, git_commit=None):
125 self._subclass_must_implement() 128 self._subclass_must_implement()
126 129
127 def _added_files(self): 130 def _added_files(self):
128 self._subclass_must_implement() 131 self._subclass_must_implement()
129 132
130 def _deleted_files(self): 133 def _deleted_files(self):
131 self._subclass_must_implement() 134 self._subclass_must_implement()
132 135
133 def display_name(self): 136 def display_name(self):
(...skipping 15 matching lines...) Expand all
149 #-------------------------------------------------------------------------- 152 #--------------------------------------------------------------------------
150 # Subclasses must indicate if they support local commits, 153 # Subclasses must indicate if they support local commits,
151 # but the SCM baseclass will only call local_commits methods when this is tr ue. 154 # but the SCM baseclass will only call local_commits methods when this is tr ue.
152 @staticmethod 155 @staticmethod
153 def supports_local_commits(): 156 def supports_local_commits():
154 SCM._subclass_must_implement() 157 SCM._subclass_must_implement()
155 158
156 def commit_locally_with_message(self, message): 159 def commit_locally_with_message(self, message):
157 _log.error("Your source control manager does not support local commits." ) 160 _log.error("Your source control manager does not support local commits." )
158 sys.exit(1) 161 sys.exit(1)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698