Пример #1
0
 def vcs_repo(self, version='latest'):
     #if hasattr(self, '_vcs_repo'):
         #return self._vcs_repo
     backend = get_backend(self.repo_type)
     if not backend:
         repo = None
     else:
         repo = backend(self, version)
     #self._vcs_repo = repo
     return repo
Пример #2
0
 def vcs_repo(self, version='latest'):
     #if hasattr(self, '_vcs_repo'):
     #return self._vcs_repo
     backend = get_backend(self.repo_type)
     if not backend:
         repo = None
     else:
         repo = backend(self, version)
     #self._vcs_repo = repo
     return repo
Пример #3
0
 def vcs_repo(self):
     if hasattr(self, '_vcs_repo'):
         return self._vcs_repo
     backend = get_backend(self.repo_type)
     if not backend:
         repo = None
     else:
         repo = backend(self.repo, self.working_dir)
     self._vcs_repo = repo
     return repo