OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 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 """Meta checkout manager supporting both Subversion and GIT. | 6 """Meta checkout manager supporting both Subversion and GIT. |
7 | 7 |
8 Files | 8 Files |
9 .gclient : Current client configuration, written by 'config' command. | 9 .gclient : Current client configuration, written by 'config' command. |
10 Format is a Python script defining 'solutions', a list whose | 10 Format is a Python script defining 'solutions', a list whose |
(...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1083 parser.add_option('-H', '--head', action='store_true', | 1083 parser.add_option('-H', '--head', action='store_true', |
1084 help='skips any safesync_urls specified in ' | 1084 help='skips any safesync_urls specified in ' |
1085 'configured solutions and sync to head instead') | 1085 'configured solutions and sync to head instead') |
1086 parser.add_option('-D', '--delete_unversioned_trees', action='store_true', | 1086 parser.add_option('-D', '--delete_unversioned_trees', action='store_true', |
1087 help='delete any dependency that have been removed from ' | 1087 help='delete any dependency that have been removed from ' |
1088 'last sync as long as there is no local modification. ' | 1088 'last sync as long as there is no local modification. ' |
1089 'Coupled with --force, it will remove them even with ' | 1089 'Coupled with --force, it will remove them even with ' |
1090 'local modifications') | 1090 'local modifications') |
1091 parser.add_option('-R', '--reset', action='store_true', | 1091 parser.add_option('-R', '--reset', action='store_true', |
1092 help='resets any local changes before updating (git only)') | 1092 help='resets any local changes before updating (git only)') |
| 1093 parser.add_option('-M', '--merge', action='store_true', |
| 1094 help='merge upstream changes instead of trying to ' |
| 1095 'fast-forward or rebase') |
1093 parser.add_option('--deps', dest='deps_os', metavar='OS_LIST', | 1096 parser.add_option('--deps', dest='deps_os', metavar='OS_LIST', |
1094 help='override deps for the specified (comma-separated) ' | 1097 help='override deps for the specified (comma-separated) ' |
1095 'platform(s); \'all\' will process all deps_os ' | 1098 'platform(s); \'all\' will process all deps_os ' |
1096 'references') | 1099 'references') |
1097 parser.add_option('-m', '--manually_grab_svn_rev', action='store_true', | 1100 parser.add_option('-m', '--manually_grab_svn_rev', action='store_true', |
1098 help='Skip svn up whenever possible by requesting ' | 1101 help='Skip svn up whenever possible by requesting ' |
1099 'actual HEAD revision from the repository') | 1102 'actual HEAD revision from the repository') |
1100 (options, args) = parser.parse_args(args) | 1103 (options, args) = parser.parse_args(args) |
1101 client = GClient.LoadCurrentConfig(options) | 1104 client = GClient.LoadCurrentConfig(options) |
1102 | 1105 |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1302 except (gclient_utils.Error, subprocess2.CalledProcessError), e: | 1305 except (gclient_utils.Error, subprocess2.CalledProcessError), e: |
1303 print >> sys.stderr, 'Error: %s' % str(e) | 1306 print >> sys.stderr, 'Error: %s' % str(e) |
1304 return 1 | 1307 return 1 |
1305 | 1308 |
1306 | 1309 |
1307 if '__main__' == __name__: | 1310 if '__main__' == __name__: |
1308 fix_encoding.fix_encoding() | 1311 fix_encoding.fix_encoding() |
1309 sys.exit(Main(sys.argv[1:])) | 1312 sys.exit(Main(sys.argv[1:])) |
1310 | 1313 |
1311 # vim: ts=2:sw=2:tw=80:et: | 1314 # vim: ts=2:sw=2:tw=80:et: |
OLD | NEW |