Chromium Code Reviews| 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 dependency manager for Git.""" | 6 """Meta checkout dependency manager for Git.""" |
| 7 # Files | 7 # Files |
| 8 # .gclient : Current client configuration, written by 'config' command. | 8 # .gclient : Current client configuration, written by 'config' command. |
| 9 # Format is a Python script defining 'solutions', a list whose | 9 # Format is a Python script defining 'solutions', a list whose |
| 10 # entries each are maps binding the strings "name" and "url" | 10 # entries each are maps binding the strings "name" and "url" |
| (...skipping 1580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1591 def target_os(self): | 1591 def target_os(self): |
| 1592 return self._enforced_os | 1592 return self._enforced_os |
| 1593 | 1593 |
| 1594 | 1594 |
| 1595 #### gclient commands. | 1595 #### gclient commands. |
| 1596 | 1596 |
| 1597 | 1597 |
| 1598 def CMDcleanup(parser, args): | 1598 def CMDcleanup(parser, args): |
| 1599 """DEPRECATED: SVN-only. Cleaned up all working copies. | 1599 """DEPRECATED: SVN-only. Cleaned up all working copies. |
| 1600 | 1600 |
| 1601 This is a no-op in Git. | 1601 This is a no-op in Git. |
|
agable
2016/10/28 16:55:34
Update this docstring. No longer deprecated, no lo
| |
| 1602 """ | 1602 """ |
| 1603 parser.add_option('--deps', dest='deps_os', metavar='OS_LIST', | 1603 parser.add_option('--deps', dest='deps_os', metavar='OS_LIST', |
| 1604 help='override deps for the specified (comma-separated) ' | 1604 help='override deps for the specified (comma-separated) ' |
| 1605 'platform(s); \'all\' will process all deps_os ' | 1605 'platform(s); \'all\' will process all deps_os ' |
| 1606 'references') | 1606 'references') |
| 1607 parser.add_option('--break_repo_locks', action='store_true', | |
|
agable
2016/10/28 16:55:34
Honestly I wouldn't even bother with this. This wi
katthomas
2016/10/28 23:40:29
Done.
| |
| 1608 help='GIT ONLY - Forcibly remove repo locks (e.g. ' | |
| 1609 'index.lock). This should only be used if you know for ' | |
| 1610 'certain that this invocation of gclient is the only ' | |
| 1611 'thing operating on the git repos (e.g. on a bot).') | |
| 1607 (options, args) = parser.parse_args(args) | 1612 (options, args) = parser.parse_args(args) |
| 1608 client = GClient.LoadCurrentConfig(options) | 1613 client = GClient.LoadCurrentConfig(options) |
| 1609 if not client: | 1614 if not client: |
| 1610 raise gclient_utils.Error('client not configured; see \'gclient config\'') | 1615 raise gclient_utils.Error('client not configured; see \'gclient config\'') |
| 1611 if options.verbose: | 1616 if options.verbose: |
| 1612 client.PrintLocationAndContents() | 1617 client.PrintLocationAndContents() |
| 1613 return client.RunOnDeps('cleanup', args) | 1618 return client.RunOnDeps('cleanup', args) |
| 1614 | 1619 |
| 1615 | 1620 |
| 1616 @subcommand.usage('[command] [args ...]') | 1621 @subcommand.usage('[command] [args ...]') |
| (...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2180 | 2185 |
| 2181 | 2186 |
| 2182 if '__main__' == __name__: | 2187 if '__main__' == __name__: |
| 2183 try: | 2188 try: |
| 2184 sys.exit(main(sys.argv[1:])) | 2189 sys.exit(main(sys.argv[1:])) |
| 2185 except KeyboardInterrupt: | 2190 except KeyboardInterrupt: |
| 2186 sys.stderr.write('interrupted\n') | 2191 sys.stderr.write('interrupted\n') |
| 2187 sys.exit(1) | 2192 sys.exit(1) |
| 2188 | 2193 |
| 2189 # vim: ts=2:sw=2:tw=80:et: | 2194 # vim: ts=2:sw=2:tw=80:et: |
| OLD | NEW |