cvs: Fix indentation

Change-Id: I4f3c30678d8b9907f059f0f288de8bfb415f7338
Signed-off-by: Tan Heng Yeow <E0032242@u.nus.edu>
This commit is contained in:
tanhengyeow 2018-09-07 22:24:47 +08:00
parent 4d5397c496
commit 1c3efc130f
1 changed files with 5 additions and 2 deletions

View File

@ -561,14 +561,17 @@ def cvs(registry, xml_parent, data):
:language: yaml
"""
prefix = 'hudson.scm.'
valid_loc_types = {'HEAD': 'Head', 'TAG': 'Tag', 'BRANCH': 'Branch'}
valid_loc_types = {
'HEAD': 'Head',
'TAG': 'Tag',
'BRANCH': 'Branch'
}
cvs = XML.SubElement(xml_parent, 'scm', {'class': prefix + 'CVSSCM'})
repos = data.get('repos')
repos_tag = XML.SubElement(cvs, 'repositories')
for repo in repos:
repo_tag = XML.SubElement(repos_tag, prefix + 'CvsRepository')
compression_level = repo.get('compression-level', '-1')
repo_mapping = [
('root', 'cvsRoot', None),