~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_reconfigure.py

  • Committer: Joe Julian
  • Date: 2010-01-10 02:25:31 UTC
  • mto: (4634.119.7 2.0)
  • mto: This revision was merged to the branch mainline in revision 4959.
  • Revision ID: joe@julianfamily.org-20100110022531-wqk61rsagz8xsiga
Added MANIFEST.in to allow bdist_rpm to have all the required include files and tools. bdist_rpm will still fail to build correctly on some distributions due to a disttools bug http://bugs.python.org/issue644744

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,
19
20
    errors,
20
21
    reconfigure,
21
22
    repository,
417
418
            reconfigure.Reconfigure.set_repository_trees, tree.bzrdir, None)
418
419
        self.assertContainsRe(str(e),
419
420
            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'))