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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 of the latest, either for a single solution or for all solutions. | 119 of the latest, either for a single solution or for all solutions. |
120 Unless the --force option is provided, solutions and modules whose | 120 Unless the --force option is provided, solutions and modules whose |
121 local revision matches the one to update (i.e., they have not changed | 121 local revision matches the one to update (i.e., they have not changed |
122 in the repository) are *not* modified. Unless --nohooks is provided, | 122 in the repository) are *not* modified. Unless --nohooks is provided, |
123 the hooks are run. | 123 the hooks are run. |
124 This a synonym for 'gclient %(alias)s' | 124 This a synonym for 'gclient %(alias)s' |
125 | 125 |
126 usage: gclient %(cmd)s [options] [--] [svn update options/args] | 126 usage: gclient %(cmd)s [options] [--] [svn update options/args] |
127 | 127 |
128 Valid options: | 128 Valid options: |
129 --force : force update even for unchanged modules | 129 --force : force update even for unchanged modules |
130 --nohooks : don't run the hooks after the update is complete | 130 --nohooks : don't run the hooks after the update is complete |
131 --revision REV : update/checkout all solutions with specified revision | |
132 --revision SOLUTION@REV : update given solution to specified revision | 131 --revision SOLUTION@REV : update given solution to specified revision |
133 --deps PLATFORM(S) : sync deps for the given platform(s), or 'all' | 132 --deps PLATFORM(S) : sync deps for the given platform(s), or 'all' |
134 --verbose : output additional diagnostics | 133 --verbose : output additional diagnostics |
135 --head : update to latest revision, instead of last good revision | 134 --head : update to latest revision, instead of last good revi
sion |
136 | 135 |
137 Examples: | 136 Examples: |
138 gclient %(cmd)s | 137 gclient %(cmd)s |
139 update files from SVN according to current configuration, | 138 update files from SVN according to current configuration, |
140 *for modules which have changed since last update or sync* | 139 *for modules which have changed since last update or sync* |
141 gclient %(cmd)s --force | 140 gclient %(cmd)s --force |
142 update files from SVN according to current configuration, for | 141 update files from SVN according to current configuration, for |
143 all modules (useful for recovering files deleted from local copy) | 142 all modules (useful for recovering files deleted from local copy) |
| 143 gclient %(cmd)s --revision src@31000 |
| 144 update src directory to r31000 |
144 """) | 145 """) |
145 | 146 |
146 COMMAND_USAGE_TEXT = { | 147 COMMAND_USAGE_TEXT = { |
147 "cleanup": | 148 "cleanup": |
148 """Clean up all working copies, using 'svn cleanup' for each module. | 149 """Clean up all working copies, using 'svn cleanup' for each module. |
149 Additional options and args may be passed to 'svn cleanup'. | 150 Additional options and args may be passed to 'svn cleanup'. |
150 | 151 |
151 usage: cleanup [options] [--] [svn cleanup args/options] | 152 usage: cleanup [options] [--] [svn cleanup args/options] |
152 | 153 |
153 Valid options: | 154 Valid options: |
(...skipping 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1180 | 1181 |
1181 if "__main__" == __name__: | 1182 if "__main__" == __name__: |
1182 try: | 1183 try: |
1183 result = Main(sys.argv) | 1184 result = Main(sys.argv) |
1184 except gclient_utils.Error, e: | 1185 except gclient_utils.Error, e: |
1185 print >> sys.stderr, "Error: %s" % str(e) | 1186 print >> sys.stderr, "Error: %s" % str(e) |
1186 result = 1 | 1187 result = 1 |
1187 sys.exit(result) | 1188 sys.exit(result) |
1188 | 1189 |
1189 # vim: ts=2:sw=2:tw=80:et: | 1190 # vim: ts=2:sw=2:tw=80:et: |
OLD | NEW |