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

Side by Side Diff: tools/check_git_config.py

Issue 766273002: Fix "Managed Mode" URL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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:]))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698