示例#1
0
 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
示例#2
0
 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
示例#3
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
示例#4
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