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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 it will be removed from the list and the list will be extended | 42 it will be removed from the list and the list will be extended |
43 by the list of matching files. | 43 by the list of matching files. |
44 | 44 |
45 Example: | 45 Example: |
46 hooks = [ | 46 hooks = [ |
47 { "pattern": "\\.(gif|jpe?g|pr0n|png)$", | 47 { "pattern": "\\.(gif|jpe?g|pr0n|png)$", |
48 "action": ["python", "image_indexer.py", "--all"]}, | 48 "action": ["python", "image_indexer.py", "--all"]}, |
49 ] | 49 ] |
50 """ | 50 """ |
51 | 51 |
52 __version__ = "0.6.2" | 52 __version__ = "0.6.3" |
53 | 53 |
54 import copy | 54 import copy |
55 import logging | 55 import logging |
56 import optparse | 56 import optparse |
57 import os | 57 import os |
58 import posixpath | 58 import posixpath |
59 import pprint | 59 import pprint |
60 import re | 60 import re |
61 import sys | 61 import sys |
62 import urlparse | 62 import urlparse |
(...skipping 1430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1493 except (gclient_utils.Error, subprocess2.CalledProcessError), e: | 1493 except (gclient_utils.Error, subprocess2.CalledProcessError), e: |
1494 print >> sys.stderr, 'Error: %s' % str(e) | 1494 print >> sys.stderr, 'Error: %s' % str(e) |
1495 return 1 | 1495 return 1 |
1496 | 1496 |
1497 | 1497 |
1498 if '__main__' == __name__: | 1498 if '__main__' == __name__: |
1499 fix_encoding.fix_encoding() | 1499 fix_encoding.fix_encoding() |
1500 sys.exit(Main(sys.argv[1:])) | 1500 sys.exit(Main(sys.argv[1:])) |
1501 | 1501 |
1502 # vim: ts=2:sw=2:tw=80:et: | 1502 # vim: ts=2:sw=2:tw=80:et: |
OLD | NEW |