| OLD | NEW | 
|---|
| 1 #!/usr/bin/python | 1 #!/usr/bin/python | 
| 2 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2010 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 135       raise gclient_utils.Error("Var is not defined: %s" % var_name) | 135       raise gclient_utils.Error("Var is not defined: %s" % var_name) | 
| 136 | 136 | 
| 137 | 137 | 
| 138 class Dependency(GClientKeywords, gclient_utils.WorkItem): | 138 class Dependency(GClientKeywords, gclient_utils.WorkItem): | 
| 139   """Object that represents a dependency checkout.""" | 139   """Object that represents a dependency checkout.""" | 
| 140   DEPS_FILE = 'DEPS' | 140   DEPS_FILE = 'DEPS' | 
| 141 | 141 | 
| 142   def __init__(self, parent, name, url, safesync_url, custom_deps, | 142   def __init__(self, parent, name, url, safesync_url, custom_deps, | 
| 143                custom_vars, deps_file, should_process): | 143                custom_vars, deps_file, should_process): | 
| 144     GClientKeywords.__init__(self) | 144     GClientKeywords.__init__(self) | 
|  | 145     gclient_utils.WorkItem.__init__(self) | 
| 145     self.parent = parent | 146     self.parent = parent | 
| 146     self.name = name | 147     self.name = name | 
| 147     self.url = url | 148     self.url = url | 
| 148     self.parsed_url = None | 149     self.parsed_url = None | 
| 149     # These 2 are only set in .gclient and not in DEPS files. | 150     # These 2 are only set in .gclient and not in DEPS files. | 
| 150     self.safesync_url = safesync_url | 151     self.safesync_url = safesync_url | 
| 151     self.custom_vars = custom_vars or {} | 152     self.custom_vars = custom_vars or {} | 
| 152     self.custom_deps = custom_deps or {} | 153     self.custom_deps = custom_deps or {} | 
| 153     self.deps_hooks = [] | 154     self.deps_hooks = [] | 
| 154     self.dependencies = [] | 155     self.dependencies = [] | 
| (...skipping 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1228     return CMDhelp(parser, argv) | 1229     return CMDhelp(parser, argv) | 
| 1229   except gclient_utils.Error, e: | 1230   except gclient_utils.Error, e: | 
| 1230     print >> sys.stderr, 'Error: %s' % str(e) | 1231     print >> sys.stderr, 'Error: %s' % str(e) | 
| 1231     return 1 | 1232     return 1 | 
| 1232 | 1233 | 
| 1233 | 1234 | 
| 1234 if '__main__' == __name__: | 1235 if '__main__' == __name__: | 
| 1235   sys.exit(Main(sys.argv[1:])) | 1236   sys.exit(Main(sys.argv[1:])) | 
| 1236 | 1237 | 
| 1237 # vim: ts=2:sw=2:tw=80:et: | 1238 # vim: ts=2:sw=2:tw=80:et: | 
| OLD | NEW | 
|---|