~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/bzrdir_implementations/test_bzrdir.py

  • Committer: Robert Collins
  • Date: 2006-02-12 09:40:15 UTC
  • mto: (1534.1.22 integration)
  • mto: This revision was merged to the branch mainline in revision 1554.
  • Revision ID: robertc@robertcollins.net-20060212094015-0fba37745716a3d9
Implement -r limit for checkout command.

Show diffs side-by-side

added added

removed removed

Lines of Context:
529
529
        self.failUnless(isinstance(made_tree, workingtree.WorkingTree))
530
530
        self.assertEqual(made_control, made_tree.bzrdir)
531
531
        
 
532
    def test_create_workingtree_revision(self):
 
533
        # a bzrdir can construct a working tree for itself @ a specific revision.
 
534
        source = self.make_branch_and_tree('source')
 
535
        source.commit('a', rev_id='a', allow_pointless=True)
 
536
        source.commit('b', rev_id='b', allow_pointless=True)
 
537
        self.build_tree(['new/'])
 
538
        made_control = self.bzrdir_format.initialize('new')
 
539
        source.branch.repository.clone(made_control)
 
540
        source.branch.clone(made_control)
 
541
        made_tree = made_control.create_workingtree(revision_id='a')
 
542
        self.assertEqual('a', made_tree.last_revision())
 
543
        
532
544
    def test_open_workingtree(self):
533
545
        if not self.bzrdir_format.is_supported():
534
546
            # unsupported formats are not loopback testable