def repo(registry, xml_parent, data):
 scm = XML.SubElement(xml_parent, 'scm', {'class': 'hudson.plugins.repo.RepoScm'})
 mapping = [('manifest-url', 'manifestRepositoryUrl', None), ('manifest-branch', 'manifestBranch', ''), ('manifest-file', 'manifestFile', ''), ('manifest-group', 'manifestGroup', ''), ('destination-dir', 'destinationDir', ''), ('repo-url', 'repoUrl', ''), ('mirror-dir', 'mirrorDir', ''), ('jobs', 'jobs', 0), ('depth', 'depth', 0), ('current-branch', 'currentBranch', True), ('reset-first', 'resetFirst', False), ('quiet', 'quiet', True), ('force-sync', 'forceSync', False), ('no-tags', 'noTags', False), ('trace', 'trace', False), ('show-all-changes', 'showAllChanges', False), ('local-manifest', 'localManifest', '')]
 convert_mapping_to_xml(scm, data, mapping, fail_required=True)
 ip = XML.SubElement(scm, 'ignoreProjects', {'class': 'linked-hash-set'})
 ignored_projects = data.get('ignore-projects', [''])
 for ignored_project in ignored_projects:
  XML.SubElement(ip, 'string').text = str(ignored_project)

def repo ( registry , xml_parent , data ) : scm = XML . SubElement ( xml_parent , 'scm' , { 'class' : 'hudson.plugins.repo.RepoScm' } ) mapping = [ ( 'manifest-url' , 'manifestRepositoryUrl' , None ) , ( 'manifest-branch' , 'manifestBranch' , '' ) , ( 'manifest-file' , 'manifestFile' , '' ) , ( 'manifest-group' , 'manifestGroup' , '' ) , ( 'destination-dir' , 'destinationDir' , '' ) , ( 'repo-url' , 'repoUrl' , '' ) , ( 'mirror-dir' , 'mirrorDir' , '' ) , ( 'jobs' , 'jobs' , 0 ) , ( 'depth' , 'depth' , 0 ) , ( 'current-branch' , 'currentBranch' , True ) , ( 'reset-first' , 'resetFirst' , False ) , ( 'quiet' , 'quiet' , True ) , ( 'force-sync' , 'forceSync' , False ) , ( 'no-tags' , 'noTags' , False ) , ( 'trace' , 'trace' , False ) , ( 'show-all-changes' , 'showAllChanges' , False ) , ( 'local-manifest' , 'localManifest' , '' ) ] convert_mapping_to_xml ( scm , data , mapping , fail_required = True ) ip = XML . SubElement ( scm , 'ignoreProjects' , { 'class' : 'linked-hash-set' } ) ignored_projects = data . get ( 'ignore-projects' , [ '' ] ) for ignored_project in ignored_projects : XML . SubElement ( ip , 'string' ) . text = str ( ignored_project )
get the path to the git repository or one of its subdirectories .