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

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

Issue 2397573002: Don't track SCM changes in rebaseline commands. (Closed)
Patch Set: Rebased Created 4 years, 2 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 def _subclass_must_implement(): 92 def _subclass_must_implement():
93 raise NotImplementedError("subclasses must implement") 93 raise NotImplementedError("subclasses must implement")
94 94
95 @classmethod 95 @classmethod
96 def in_working_directory(cls, path, executive=None): 96 def in_working_directory(cls, path, executive=None):
97 SCM._subclass_must_implement() 97 SCM._subclass_must_implement()
98 98
99 def find_checkout_root(self, path): 99 def find_checkout_root(self, path):
100 SCM._subclass_must_implement() 100 SCM._subclass_must_implement()
101 101
102 def add_all(self):
103 self._subclass_must_implement()
104
102 def add(self, path, return_exit_code=False, recurse=True): 105 def add(self, path, return_exit_code=False, recurse=True):
103 self.add_list([path], return_exit_code, recurse) 106 self.add_list([path], return_exit_code, recurse)
104 107
105 def add_list(self, paths, return_exit_code=False, recurse=True): 108 def add_list(self, paths, return_exit_code=False, recurse=True):
106 self._subclass_must_implement() 109 self._subclass_must_implement()
107 110
108 def delete(self, path): 111 def delete(self, path):
109 self.delete_list([path]) 112 self.delete_list([path])
110 113
111 def delete_list(self, paths): 114 def delete_list(self, paths):
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 #-------------------------------------------------------------------------- 148 #--------------------------------------------------------------------------
146 # Subclasses must indicate if they support local commits, 149 # Subclasses must indicate if they support local commits,
147 # but the SCM baseclass will only call local_commits methods when this is tr ue. 150 # but the SCM baseclass will only call local_commits methods when this is tr ue.
148 @staticmethod 151 @staticmethod
149 def supports_local_commits(): 152 def supports_local_commits():
150 SCM._subclass_must_implement() 153 SCM._subclass_must_implement()
151 154
152 def commit_locally_with_message(self, message): 155 def commit_locally_with_message(self, message):
153 _log.error("Your source control manager does not support local commits." ) 156 _log.error("Your source control manager does not support local commits." )
154 sys.exit(1) 157 sys.exit(1)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698