Enable commit processing for branches other than master

* Change config to allow to specify branch name for release
* Process all branches specified in config, not only master

TBD: update of default data and its schema

Partially fixes bug 1239816

Change-Id: I960a493b833414148befc5d6339df30706ffa38b
This commit is contained in:
Ilya Shakhat
2013-10-15 17:41:05 +04:00
parent 83a28b7c8e
commit c38c2d88f3
3 changed files with 20 additions and 9 deletions

View File

@@ -92,7 +92,12 @@ def process_repo(repo, runtime_storage_inst, record_processor_inst):
rcs_inst.setup(key_filename=cfg.CONF.ssh_key_filename,
username=cfg.CONF.ssh_username)
for branch in repo['branches']:
branches = set(['master'])
for release in repo.get('releases'):
if 'branch' in release:
branches.add(release['branch'])
for branch in branches:
LOG.debug('Processing repo %s, branch %s', uri, branch)
vcs_key = 'vcs:' + str(urllib.quote_plus(uri) + ':' + branch)