def enum_cfg_repos(config):
 repositories = util.getRepositoryDir(config)
 for section in config.sections():
  l = section.split(None, 1)
  type_ = l.pop(0)
  if (type_ != 'repo'):
   continue
  if (not l):
   continue
  (name,) = l
  if (not os.path.exists(os.path.join(repositories, name))):
   subpath = ('%s.git' % name)
  else:
   subpath = name
  (yield (section, name, repositories, subpath))

def enum_cfg_repos ( config ) : repositories = util . getRepositoryDir ( config ) for section in config . sections ( ) : l = section . split ( None , 1 ) type_ = l . pop ( 0 ) if ( type_ != 'repo' ) : continue if ( not l ) : continue ( name , ) = l if ( not os . path . exists ( os . path . join ( repositories , name ) ) ) : subpath = ( '%s.git' % name ) else : subpath = name ( yield ( section , name , repositories , subpath ) )
enumerates all repositories that have repo sections in the config .