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 # Copyright (C) 2008 Evan Martin <martine@danga.com> | 6 # Copyright (C) 2008 Evan Martin <martine@danga.com> |
| 7 | 7 |
| 8 """A git-command for integrating reviews on Rietveld.""" | 8 """A git-command for integrating reviews on Rietveld.""" |
| 9 | 9 |
| 10 from distutils.version import LooseVersion | 10 from distutils.version import LooseVersion |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 34 import breakpad # pylint: disable=W0611 | 34 import breakpad # pylint: disable=W0611 |
| 35 import clang_format | 35 import clang_format |
| 36 import fix_encoding | 36 import fix_encoding |
| 37 import gclient_utils | 37 import gclient_utils |
| 38 import presubmit_support | 38 import presubmit_support |
| 39 import rietveld | 39 import rietveld |
| 40 import scm | 40 import scm |
| 41 import subcommand | 41 import subcommand |
| 42 import subprocess2 | 42 import subprocess2 |
| 43 import watchlists | 43 import watchlists |
| 44 import owners_finder | 44 import owners_finder |
|
agable
2014/03/06 18:02:20
Just confirming that all these rely on depot_tools
| |
| 45 | 45 |
| 46 __version__ = '1.0' | 46 __version__ = '1.0' |
| 47 | 47 |
| 48 DEFAULT_SERVER = 'https://codereview.appspot.com' | 48 DEFAULT_SERVER = 'https://codereview.appspot.com' |
| 49 POSTUPSTREAM_HOOK_PATTERN = '.git/hooks/post-cl-%s' | 49 POSTUPSTREAM_HOOK_PATTERN = '.git/hooks/post-cl-%s' |
| 50 DESCRIPTION_BACKUP_FILE = '~/.git_cl_description_backup' | 50 DESCRIPTION_BACKUP_FILE = '~/.git_cl_description_backup' |
| 51 GIT_INSTRUCTIONS_URL = 'http://code.google.com/p/chromium/wiki/UsingGit' | 51 GIT_INSTRUCTIONS_URL = 'http://code.google.com/p/chromium/wiki/UsingGit' |
| 52 CHANGE_ID = 'Change-Id:' | 52 CHANGE_ID = 'Change-Id:' |
| 53 | 53 |
| 54 # Shortcut since it quickly becomes redundant. | 54 # Shortcut since it quickly becomes redundant. |
| (...skipping 2406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2461 ('AppEngine is misbehaving and returned HTTP %d, again. Keep faith ' | 2461 ('AppEngine is misbehaving and returned HTTP %d, again. Keep faith ' |
| 2462 'and retry or visit go/isgaeup.\n%s') % (e.code, str(e))) | 2462 'and retry or visit go/isgaeup.\n%s') % (e.code, str(e))) |
| 2463 | 2463 |
| 2464 | 2464 |
| 2465 if __name__ == '__main__': | 2465 if __name__ == '__main__': |
| 2466 # These affect sys.stdout so do it outside of main() to simplify mocks in | 2466 # These affect sys.stdout so do it outside of main() to simplify mocks in |
| 2467 # unit testing. | 2467 # unit testing. |
| 2468 fix_encoding.fix_encoding() | 2468 fix_encoding.fix_encoding() |
| 2469 colorama.init() | 2469 colorama.init() |
| 2470 sys.exit(main(sys.argv[1:])) | 2470 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |