| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2010 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 """\ | 6 """\ |
| 7 Wrapper script around Rietveld's upload.py that simplifies working with groups | 7 Wrapper script around Rietveld's upload.py that simplifies working with groups |
| 8 of files. | 8 of files. |
| 9 """ | 9 """ |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 sys.path.append(os.path.join(os.path.dirname(__file__), 'third_party')) | 35 sys.path.append(os.path.join(os.path.dirname(__file__), 'third_party')) |
| 36 import simplejson as json # pylint: disable=F0401 | 36 import simplejson as json # pylint: disable=F0401 |
| 37 | 37 |
| 38 import breakpad # pylint: disable=W0611 | 38 import breakpad # pylint: disable=W0611 |
| 39 | 39 |
| 40 # gcl now depends on gclient. | 40 # gcl now depends on gclient. |
| 41 from scm import SVN | 41 from scm import SVN |
| 42 | 42 |
| 43 import fix_encoding | 43 import fix_encoding |
| 44 import gclient_utils | 44 import gclient_utils |
| 45 import owners | |
| 46 import presubmit_support | 45 import presubmit_support |
| 47 | 46 |
| 48 __version__ = '1.2' | 47 __version__ = '1.2' |
| 49 | 48 |
| 50 | 49 |
| 51 CODEREVIEW_SETTINGS = { | 50 CODEREVIEW_SETTINGS = { |
| 52 # To make gcl send reviews to a server, check in a file named | 51 # To make gcl send reviews to a server, check in a file named |
| 53 # "codereview.settings" (see |CODEREVIEW_SETTINGS_FILE| below) to your | 52 # "codereview.settings" (see |CODEREVIEW_SETTINGS_FILE| below) to your |
| 54 # project's base directory and add the following line to codereview.settings: | 53 # project's base directory and add the following line to codereview.settings: |
| 55 # CODE_REVIEW_SERVER: codereview.yourserver.org | 54 # CODE_REVIEW_SERVER: codereview.yourserver.org |
| (...skipping 1398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1454 raise | 1453 raise |
| 1455 print >> sys.stderr, ( | 1454 print >> sys.stderr, ( |
| 1456 'AppEngine is misbehaving and returned HTTP %d, again. Keep faith ' | 1455 'AppEngine is misbehaving and returned HTTP %d, again. Keep faith ' |
| 1457 'and retry or visit go/isgaeup.\n%s') % (e.code, str(e)) | 1456 'and retry or visit go/isgaeup.\n%s') % (e.code, str(e)) |
| 1458 return 1 | 1457 return 1 |
| 1459 | 1458 |
| 1460 | 1459 |
| 1461 if __name__ == "__main__": | 1460 if __name__ == "__main__": |
| 1462 fix_encoding.fix_encoding() | 1461 fix_encoding.fix_encoding() |
| 1463 sys.exit(main(sys.argv[1:])) | 1462 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |