~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_reconfigure.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-04-09 20:23:07 UTC
  • mfrom: (4265.1.4 bbc-merge)
  • Revision ID: pqm@pqm.ubuntu.com-20090409202307-n0depb16qepoe21o
(jam) Change _fetch_uses_deltas = False for CHK repos until we can
        write a better fix.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
from bzrlib import (
18
18
    branch as _mod_branch,
19
 
    bzrdir,
20
19
    errors,
21
20
    reconfigure,
22
21
    repository,
418
417
            reconfigure.Reconfigure.set_repository_trees, tree.bzrdir, None)
419
418
        self.assertContainsRe(str(e),
420
419
            r"Requested reconfiguration of '.*' is not supported.")
421
 
 
422
 
    def test_lightweight_checkout_to_tree_preserves_reference_locations(self):
423
 
        format = bzrdir.format_registry.make_bzrdir('1.9')
424
 
        format.set_branch_format(_mod_branch.BzrBranchFormat8())
425
 
        tree = self.make_branch_and_tree('tree', format=format)
426
 
        tree.branch.set_reference_info('file_id', 'path', '../location')
427
 
        checkout = tree.branch.create_checkout('checkout', lightweight=True)
428
 
        reconfiguration = reconfigure.Reconfigure.to_tree(checkout.bzrdir)
429
 
        reconfiguration.apply()
430
 
        checkout_branch = checkout.bzrdir.open_branch()
431
 
        self.assertEqual(('path', '../location'),
432
 
                         checkout_branch.get_reference_info('file_id'))