| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 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 """Script that attempts to push to a special git repository to verify that git | 6 """Script that attempts to push to a special git repository to verify that git |
| 7 credentials are configured correctly. It also verifies that gclient solution is | 7 credentials are configured correctly. It also verifies that gclient solution is |
| 8 configured to use git checkout. | 8 configured to use git checkout. |
| 9 | 9 |
| 10 It will be added as gclient hook shortly before Chromium switches to git and | 10 It will be added as gclient hook shortly before Chromium switches to git and |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 print ( | 409 print ( |
| 410 'You are using managed gclient mode with git, which was deprecated ' | 410 'You are using managed gclient mode with git, which was deprecated ' |
| 411 'on 8/22/13:') | 411 'on 8/22/13:') |
| 412 print ( | 412 print ( |
| 413 'https://groups.google.com/a/chromium.org/' | 413 'https://groups.google.com/a/chromium.org/' |
| 414 'forum/#!topic/chromium-dev/n9N5N3JL2_U') | 414 'forum/#!topic/chromium-dev/n9N5N3JL2_U') |
| 415 print | 415 print |
| 416 print ( | 416 print ( |
| 417 'It is strongly advised to switch to unmanaged mode. For more ' | 417 'It is strongly advised to switch to unmanaged mode. For more ' |
| 418 'information about managed mode and reasons for its deprecation see:') | 418 'information about managed mode and reasons for its deprecation see:') |
| 419 print 'http://www.chromium.org/developers/how-tos/get-the-code#Managed_mode' | 419 print 'http://www.chromium.org/developers/how-tos/get-the-code/gclient-manag
ed-mode' |
| 420 print | 420 print |
| 421 print ( | 421 print ( |
| 422 'There\'s also a large suite of tools to assist managing git ' | 422 'There\'s also a large suite of tools to assist managing git ' |
| 423 'checkouts.\nSee \'man depot_tools\' (or read ' | 423 'checkouts.\nSee \'man depot_tools\' (or read ' |
| 424 'depot_tools/man/html/depot_tools.html).') | 424 'depot_tools/man/html/depot_tools.html).') |
| 425 print '-' * 80 | 425 print '-' * 80 |
| 426 | 426 |
| 427 | 427 |
| 428 def upload_report( | 428 def upload_report( |
| 429 conf, report_url, verbose, push_works, push_log, push_duration_ms): | 429 conf, report_url, verbose, push_works, push_log, push_duration_ms): |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 write_last_configuration(config) | 531 write_last_configuration(config) |
| 532 else: | 532 else: |
| 533 logging.warning('Check failed and will be retried on the next run') | 533 logging.warning('Check failed and will be retried on the next run') |
| 534 except Exception: | 534 except Exception: |
| 535 logging.exception('Unexpected exception when performing git access check') | 535 logging.exception('Unexpected exception when performing git access check') |
| 536 return 0 | 536 return 0 |
| 537 | 537 |
| 538 | 538 |
| 539 if __name__ == '__main__': | 539 if __name__ == '__main__': |
| 540 sys.exit(main(sys.argv[1:])) | 540 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |