def testBranchBomb(self): f = phlgitu_fixture.CentralisedWithTwoWorkers() with contextlib.closing(f): self._setupBranchBomb(f) phlgit_fetch.prune_safe(f.w0.repo, 'origin') f.w0.repo('fetch', '--prune') phlgit_fetch.all_prune(f.w0.repo)
def testBreathing(self): # pychecker won't recognise the attributes on 'f' if we create it in # the closing parameter list and use 'as', at least not if we create an # alias to the CentralisedWithTwoWorkers class # f = phlgitu_fixture.CentralisedWithTwoWorkers() with contextlib.closing(f): phlgit_fetch.prune_safe(f.w0.repo, 'origin')
def testFetchSpec(self): fetchspec = ["+refs/heads/*:refs/remotes/origin/*"] fetchspec_nonexistant = ["+refs/nope/*:refs/heads/__private_nope/*"] f = phlgitu_fixture.CentralisedWithTwoWorkers() with contextlib.closing(f): phlgit_fetch.prune_safe(f.w0.repo, 'origin', []) phlgit_fetch.prune_safe(f.w0.repo, 'origin', fetchspec) phlgit_fetch.prune_safe(f.w0.repo, 'origin', fetchspec_nonexistant)
def setUp(self): self.repos = phlgitu_fixture.CentralisedWithTwoWorkers() self.repo_central = self.repos.central_repo self.repo_dev = self.repos.w0.repo sys_repo = self.repos.w1.repo refcache_repo = phlgitx_refcache.Repo(sys_repo) differ_cache = abdt_differresultcache.Cache(refcache_repo) self.repo_arcyd = abdt_git.Repo(refcache_repo, differ_cache, 'origin', 'myrepo')