~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_inv.py

Got the bzrdir api straightened out, plenty of refactoring to use it pending, but the api is up and running.

Show diffs side-by-side

added added

removed removed

Lines of Context:
463
463
        # Now make sure that 'bzr branch' also preserves the
464
464
        # executable bit
465
465
        # TODO: Maybe this should be a blackbox test
466
 
        b2 = b.clone('b2', revision='r1')
 
466
        d2 = b.bzrdir.clone('b2', revision_id='r1')
 
467
        t2 = d2.open_workingtree()
 
468
        b2 = t2.branch
467
469
        self.assertEquals('r1', b2.last_revision())
468
 
        t2 = WorkingTree(b2.base, b2)
469
470
 
470
471
        self.assertEqual(['a', 'b'], [cn for cn,ie in t2.inventory.iter_entries()])
471
472
        self.failUnless(t2.is_executable(a_id), "'a' lost the execute bit")