~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bzrdir.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-03-08 00:37:41 UTC
  • mfrom: (1594.2.4 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060308003741-08afccbf89005e87
Merge in :
 * Knit repositories use knits
 * Nested progress bar support.
 * Ghost aware graph api.

Show diffs side-by-side

added added

removed removed

Lines of Context:
492
492
        finally:
493
493
            bzrdir.BzrDirFormat.set_default_format(old_format)
494
494
 
 
495
    def test_clone(self):
 
496
        # clone into a nonlocal path works
 
497
        old_format = bzrdir.BzrDirFormat.get_default_format()
 
498
        bzrdir.BzrDirFormat.set_default_format(bzrdir.BzrDirMetaFormat1())
 
499
        try:
 
500
            branch = bzrdir.BzrDir.create_branch_convenience('local')
 
501
        finally:
 
502
            bzrdir.BzrDirFormat.set_default_format(old_format)
 
503
        branch.bzrdir.open_workingtree()
 
504
        result = branch.bzrdir.clone(self.get_url('remote'))
 
505
        self.assertRaises(errors.NoWorkingTree,
 
506
                          result.open_workingtree)
 
507
        result.open_branch()
 
508
        result.open_repository()
 
509