def setUpClass(cls):
        """Init the matcher"""
        cachedir = tempfile.mkdtemp()
        gitrepo = GitShallowRepo(cachedir=cachedir, repo=ComponentMatcher.REPO)
        gitrepo.update()

        file_indexer = FileIndexer(gitrepo=gitrepo)
        file_indexer.get_files()
        file_indexer.parse_metadata()

        cls.component_matcher = ComponentMatcher(email_cache={}, gitrepo=gitrepo, file_indexer=file_indexer)
    def setUpClass(cls):
        """Init the matcher"""
        cachedir = tempfile.mkdtemp()
        gitrepo = GitShallowRepo(cachedir=cachedir, repo=ComponentMatcher.REPO)
        gitrepo.update()

        file_indexer = FileIndexer(gitrepo=gitrepo)
        file_indexer.get_files()
        file_indexer.parse_metadata()

        cls.component_matcher = ComponentMatcher(email_cache={}, gitrepo=gitrepo, file_indexer=file_indexer)
Exemple #3
0
 def get_file_indexer(m_manage_checkout, m_checkoutdir):
     indexer = FileIndexer()
     indexer.get_files()
     indexer.parse_metadata()
     return indexer