def setUp(self): project = VCSProject( "testname", 'testDefaultBranch', '/home/vagrant/TestCheckout', '//depot/games/branches/development/MAIN/eve/common/modules/sake') self.p4 = p4.Backend(project, "1.0") self.build_dir = '/home/vagrant/TestBuild' self.p4.run('mkdir', self.build_dir) # So teardown won't fail
def vcs_repo(self, name, root): backend = backend_cls.get(self.type) if not backend: repo = None else: proj = VCSProject(name, self.commit, root, self.repo) repo = backend(proj) return repo
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
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