Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(635)

Side by Side Diff: gclient.py

Issue 6791018: Add a warning if the current version of python is not 2.5 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Updated to work seamlessly with python 2.5 Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gcl.py ('k') | git_cl.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/env python
2 # Copyright (c) 2010 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
11 entries each are maps binding the strings "name" and "url" 11 entries each are maps binding the strings "name" and "url"
12 to strings specifying the name and location of the client 12 to strings specifying the name and location of the client
(...skipping 1251 matching lines...) Expand 10 before | Expand all | Expand 10 after
1264 except gclient_utils.Error, e: 1264 except gclient_utils.Error, e:
1265 print >> sys.stderr, 'Error: %s' % str(e) 1265 print >> sys.stderr, 'Error: %s' % str(e)
1266 return 1 1266 return 1
1267 1267
1268 1268
1269 if '__main__' == __name__: 1269 if '__main__' == __name__:
1270 fix_encoding.fix_encoding() 1270 fix_encoding.fix_encoding()
1271 sys.exit(Main(sys.argv[1:])) 1271 sys.exit(Main(sys.argv[1:]))
1272 1272
1273 # vim: ts=2:sw=2:tw=80:et: 1273 # vim: ts=2:sw=2:tw=80:et:
OLDNEW
« no previous file with comments | « gcl.py ('k') | git_cl.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698