~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_commit.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:
19
19
 
20
20
import bzrlib
21
21
from bzrlib import (
22
 
    bzrdir,
23
22
    config,
 
23
    controldir,
24
24
    errors,
25
25
    )
26
26
from bzrlib.branch import Branch
835
835
    def test_commit_with_checkout_and_branch_sharing_repo(self):
836
836
        repo = self.make_repository('repo', shared=True)
837
837
        # make_branch_and_tree ignores shared repos
838
 
        branch = bzrdir.BzrDir.create_branch_convenience('repo/branch')
 
838
        branch = controldir.ControlDir.create_branch_convenience('repo/branch')
839
839
        tree2 = branch.create_checkout('repo/tree2')
840
840
        tree2.commit('message', rev_id='rev1')
841
841
        self.assertTrue(tree2.branch.repository.has_revision('rev1'))