OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Meta checkout manager supporting both Subversion and GIT. | 6 """Meta checkout manager supporting both Subversion and GIT. |
7 | 7 |
8 Files | 8 Files |
9 .gclient : Current client configuration, written by 'config' command. | 9 .gclient : Current client configuration, written by 'config' command. |
10 Format is a Python script defining 'solutions', a list whose | 10 Format is a Python script defining 'solutions', a list whose |
(...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1160 (modified_files and not self._options.force)): | 1160 (modified_files and not self._options.force)): |
1161 # There are modified files in this entry. Keep warning until | 1161 # There are modified files in this entry. Keep warning until |
1162 # removed. | 1162 # removed. |
1163 print(('\nWARNING: \'%s\' is no longer part of this client. ' | 1163 print(('\nWARNING: \'%s\' is no longer part of this client. ' |
1164 'It is recommended that you manually remove it.\n') % | 1164 'It is recommended that you manually remove it.\n') % |
1165 entry_fixed) | 1165 entry_fixed) |
1166 else: | 1166 else: |
1167 # Delete the entry | 1167 # Delete the entry |
1168 print('\n________ deleting \'%s\' in \'%s\'' % ( | 1168 print('\n________ deleting \'%s\' in \'%s\'' % ( |
1169 entry_fixed, self.root_dir)) | 1169 entry_fixed, self.root_dir)) |
1170 gclient_utils.RemoveDirectory(e_dir) | 1170 gclient_utils.rmtree(e_dir) |
1171 # record the current list of entries for next time | 1171 # record the current list of entries for next time |
1172 self._SaveEntries() | 1172 self._SaveEntries() |
1173 return 0 | 1173 return 0 |
1174 | 1174 |
1175 def PrintRevInfo(self): | 1175 def PrintRevInfo(self): |
1176 if not self.dependencies: | 1176 if not self.dependencies: |
1177 raise gclient_utils.Error('No solution specified') | 1177 raise gclient_utils.Error('No solution specified') |
1178 # Load all the settings. | 1178 # Load all the settings. |
1179 work_queue = gclient_utils.ExecutionQueue(self._options.jobs, None, False) | 1179 work_queue = gclient_utils.ExecutionQueue(self._options.jobs, None, False) |
1180 for s in self.dependencies: | 1180 for s in self.dependencies: |
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1780 except (gclient_utils.Error, subprocess2.CalledProcessError), e: | 1780 except (gclient_utils.Error, subprocess2.CalledProcessError), e: |
1781 print >> sys.stderr, 'Error: %s' % str(e) | 1781 print >> sys.stderr, 'Error: %s' % str(e) |
1782 return 1 | 1782 return 1 |
1783 | 1783 |
1784 | 1784 |
1785 if '__main__' == __name__: | 1785 if '__main__' == __name__: |
1786 fix_encoding.fix_encoding() | 1786 fix_encoding.fix_encoding() |
1787 sys.exit(Main(sys.argv[1:])) | 1787 sys.exit(Main(sys.argv[1:])) |
1788 | 1788 |
1789 # vim: ts=2:sw=2:tw=80:et: | 1789 # vim: ts=2:sw=2:tw=80:et: |
OLD | NEW |