| 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 22 matching lines...) Expand all Loading... |
| 33 except (ImportError, AttributeError): | 33 except (ImportError, AttributeError): |
| 34 # Import the one included in depot_tools. | 34 # Import the one included in depot_tools. |
| 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 gclient_utils | 44 import gclient_utils |
| 44 import owners | 45 import owners |
| 45 import presubmit_support | 46 import presubmit_support |
| 46 | 47 |
| 47 __version__ = '1.2' | 48 __version__ = '1.2' |
| 48 | 49 |
| 49 | 50 |
| 50 CODEREVIEW_SETTINGS = { | 51 CODEREVIEW_SETTINGS = { |
| 51 # To make gcl send reviews to a server, check in a file named | 52 # To make gcl send reviews to a server, check in a file named |
| 52 # "codereview.settings" (see |CODEREVIEW_SETTINGS_FILE| below) to your | 53 # "codereview.settings" (see |CODEREVIEW_SETTINGS_FILE| below) to your |
| (...skipping 1413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1466 except urllib2.HTTPError, e: | 1467 except urllib2.HTTPError, e: |
| 1467 if e.code != 500: | 1468 if e.code != 500: |
| 1468 raise | 1469 raise |
| 1469 print >> sys.stderr, ( | 1470 print >> sys.stderr, ( |
| 1470 'AppEngine is misbehaving and returned HTTP %d, again. Keep faith ' | 1471 'AppEngine is misbehaving and returned HTTP %d, again. Keep faith ' |
| 1471 'and retry or visit go/isgaeup.\n%s') % (e.code, str(e)) | 1472 'and retry or visit go/isgaeup.\n%s') % (e.code, str(e)) |
| 1472 return 1 | 1473 return 1 |
| 1473 | 1474 |
| 1474 | 1475 |
| 1475 if __name__ == "__main__": | 1476 if __name__ == "__main__": |
| 1477 fix_encoding.fix_encoding() |
| 1476 sys.exit(main(sys.argv[1:])) | 1478 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |