Mercurial > hg > autobot
comparison autobot/template/master/master.cfg @ 140:56b14dd2e3da
correct syntax
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 24 Jan 2011 12:53:15 -0800 |
parents | 336702f58075 |
children | 19719b24957e |
comparison
equal
deleted
inserted
replaced
139:a0866ad63d93 | 140:56b14dd2e3da |
---|---|
40 # XXX this should be moved to real code, not pseudo-config | 40 # XXX this should be moved to real code, not pseudo-config |
41 if not hasattr(f, 'sources'): | 41 if not hasattr(f, 'sources'): |
42 continue | 42 continue |
43 for source_type in sources: | 43 for source_type in sources: |
44 _sources = getattr(_sources).get(source_type, []) | 44 _sources = getattr(_sources).get(source_type, []) |
45 if isinstance(_sources, basestring): | 45 for source, branch in _sources: |
46 _sources = _sources.split() | |
47 for source in _sources: | |
48 if instance(source, basestring): | |
49 branch = None | |
50 if '#' in source: | |
51 source, branch = source.rsplit('#', 1) | |
52 else: # tuple | |
53 source, branch = source | |
54 sources[source_type].add((source, branch)) | 46 sources[source_type].add((source, branch)) |
55 | 47 |
56 c['builders'] = builders | 48 c['builders'] = builders |
57 | 49 |
58 ####### CHANGESOURCES | 50 ####### CHANGESOURCES |