예제 #1
0
 def vcs_repo(self, version=LATEST):
     backend = backend_cls.get(self.repo_type)
     if not backend:
         repo = None
     else:
         proj = VCSProject(self.name, self.default_branch,
                           self.checkout_path(version), self.clean_repo)
         repo = backend(proj, version)
     return repo
예제 #2
0
 def vcs_repo(self, version='latest'):
     #if hasattr(self, '_vcs_repo'):
     #return self._vcs_repo
     backend = backend_cls.get(self.repo_type)
     if not backend:
         repo = None
     else:
         proj = VCSProject(self.name, self.default_branch,
                           self.checkout_path(version), self.repo)
         repo = backend(proj, version)
     #self._vcs_repo = repo
     return repo