OLD | NEW |
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 | 109 |
110 def _added_files(self): | 110 def _added_files(self): |
111 self._subclass_must_implement() | 111 self._subclass_must_implement() |
112 | 112 |
113 def _deleted_files(self): | 113 def _deleted_files(self): |
114 self._subclass_must_implement() | 114 self._subclass_must_implement() |
115 | 115 |
116 def display_name(self): | 116 def display_name(self): |
117 self._subclass_must_implement() | 117 self._subclass_must_implement() |
118 | 118 |
119 def _head_svn_revision(self): | 119 def commit_position(self, path): |
120 return self.svn_revision(self.checkout_root) | 120 """Returns the latest chromium commit position found in the checkout.""" |
121 | |
122 def svn_revision(self, path): | |
123 """Returns the latest svn revision found in the checkout.""" | |
124 self._subclass_must_implement() | 121 self._subclass_must_implement() |
125 | 122 |
126 def timestamp_of_revision(self, path, revision): | 123 def timestamp_of_revision(self, path, revision): |
127 self._subclass_must_implement() | 124 self._subclass_must_implement() |
128 | 125 |
129 def blame(self, path): | 126 def blame(self, path): |
130 self._subclass_must_implement() | 127 self._subclass_must_implement() |
131 | 128 |
132 def has_working_directory_changes(self): | 129 def has_working_directory_changes(self): |
133 self._subclass_must_implement() | 130 self._subclass_must_implement() |
134 | 131 |
135 #-------------------------------------------------------------------------- | 132 #-------------------------------------------------------------------------- |
136 # Subclasses must indicate if they support local commits, | 133 # Subclasses must indicate if they support local commits, |
137 # but the SCM baseclass will only call local_commits methods when this is tr
ue. | 134 # but the SCM baseclass will only call local_commits methods when this is tr
ue. |
138 @staticmethod | 135 @staticmethod |
139 def supports_local_commits(): | 136 def supports_local_commits(): |
140 SCM._subclass_must_implement() | 137 SCM._subclass_must_implement() |
141 | 138 |
142 def commit_locally_with_message(self, message, commit_all_working_directory_
changes=True): | 139 def commit_locally_with_message(self, message, commit_all_working_directory_
changes=True): |
143 _log.error("Your source control manager does not support local commits."
) | 140 _log.error("Your source control manager does not support local commits."
) |
144 sys.exit(1) | 141 sys.exit(1) |
OLD | NEW |