OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # | 2 # |
3 # Copyright 2008 Google Inc. All Rights Reserved. | 3 # Copyright 2008 Google Inc. All Rights Reserved. |
4 # | 4 # |
5 # Licensed under the Apache License, Version 2.0 (the "License"); | 5 # Licensed under the Apache License, Version 2.0 (the "License"); |
6 # you may not use this file except in compliance with the License. | 6 # you may not use this file except in compliance with the License. |
7 # You may obtain a copy of the License at | 7 # You may obtain a copy of the License at |
8 # | 8 # |
9 # http://www.apache.org/licenses/LICENSE-2.0 | 9 # http://www.apache.org/licenses/LICENSE-2.0 |
10 # | 10 # |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 import errno | 71 import errno |
72 import logging | 72 import logging |
73 import optparse | 73 import optparse |
74 import os | 74 import os |
75 import pprint | 75 import pprint |
76 import re | 76 import re |
77 import sys | 77 import sys |
78 import urlparse | 78 import urlparse |
79 import urllib | 79 import urllib |
80 | 80 |
| 81 import breakpad |
| 82 |
81 import gclient_scm | 83 import gclient_scm |
82 import gclient_utils | 84 import gclient_utils |
83 | 85 |
84 # default help text | 86 # default help text |
85 DEFAULT_USAGE_TEXT = ( | 87 DEFAULT_USAGE_TEXT = ( |
86 """usage: %prog <subcommand> [options] [--] [svn options/args...] | 88 """usage: %prog <subcommand> [options] [--] [svn options/args...] |
87 a wrapper for managing a set of client modules in svn. | 89 a wrapper for managing a set of client modules in svn. |
88 Version """ + __version__ + """ | 90 Version """ + __version__ + """ |
89 | 91 |
90 subcommands: | 92 subcommands: |
(...skipping 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1180 | 1182 |
1181 if "__main__" == __name__: | 1183 if "__main__" == __name__: |
1182 try: | 1184 try: |
1183 result = Main(sys.argv) | 1185 result = Main(sys.argv) |
1184 except gclient_utils.Error, e: | 1186 except gclient_utils.Error, e: |
1185 print >> sys.stderr, "Error: %s" % str(e) | 1187 print >> sys.stderr, "Error: %s" % str(e) |
1186 result = 1 | 1188 result = 1 |
1187 sys.exit(result) | 1189 sys.exit(result) |
1188 | 1190 |
1189 # vim: ts=2:sw=2:tw=80:et: | 1191 # vim: ts=2:sw=2:tw=80:et: |
OLD | NEW |