~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_branch.py

  • Committer: Patch Queue Manager
  • Date: 2012-03-06 19:49:19 UTC
  • mfrom: (6472.2.6 use-bzr-controldir)
  • Revision ID: pqm@pqm.ubuntu.com-20120306194919-kt7mj6xmhifsgees
(jelmer) Use bzrlib.controldir for generic access to control directories,
 rather than bzrlib.bzrdir. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
363
363
 
364
364
    def assertRevisionInRepository(self, repo_path, revid):
365
365
        """Check that a revision is in a repo, disregarding stacking."""
366
 
        repo = bzrdir.BzrDir.open(repo_path).open_repository()
 
366
        repo = controldir.ControlDir.open(repo_path).open_repository()
367
367
        self.assertTrue(repo.has_revision(revid))
368
368
 
369
369
    def assertRevisionNotInRepository(self, repo_path, revid):
370
370
        """Check that a revision is not in a repo, disregarding stacking."""
371
 
        repo = bzrdir.BzrDir.open(repo_path).open_repository()
 
371
        repo = controldir.ControlDir.open(repo_path).open_repository()
372
372
        self.assertFalse(repo.has_revision(revid))
373
373
 
374
374
    def assertRevisionsInBranchRepository(self, revid_list, branch_path):
400
400
        # capable of supporting stacking, but not actually have a stacked_on
401
401
        # branch configured
402
402
        self.assertRaises(errors.NotStacked,
403
 
            bzrdir.BzrDir.open('newbranch').open_branch().get_stacked_on_url)
 
403
            controldir.ControlDir.open('newbranch').open_branch().get_stacked_on_url)
404
404
 
405
405
    def test_branch_stacked_branch_stacked(self):
406
406
        """Asking to stack on a stacked branch does work"""