/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bzrdir.py

  • Committer: Neil Santos
  • Date: 2010-03-05 05:30:19 UTC
  • mto: (5080.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 5081.
  • Revision ID: neil_santos@users.sourceforge.net-20100305053019-shzuqnhliw67q1nm
Renamed link() methods to hardlink(), as per mbp's suggestion

Show diffs side-by-side

added added

removed removed

Lines of Context:
471
471
        # Make stackable source branch with an unstackable repo format.
472
472
        source_bzrdir = self.make_bzrdir('source')
473
473
        pack_repo.RepositoryFormatKnitPack1().initialize(source_bzrdir)
474
 
        source_branch = bzrlib.branch.BzrBranchFormat7().initialize(
475
 
            source_bzrdir)
 
474
        source_branch = bzrlib.branch.BzrBranchFormat7().initialize(source_bzrdir)
476
475
        # Make a directory with a default stacking policy
477
476
        parent_bzrdir = self.make_bzrdir('parent')
478
477
        stacked_on = self.make_branch('parent/stacked-on', format='pack-0.92')
1339
1338
        url = transport.base
1340
1339
        err = self.assertRaises(errors.BzrError, bzrdir.BzrDir.open, url)
1341
1340
        self.assertEqual('fail', err._preformatted_string)
1342
 
 
1343
 
    def test_post_repo_init(self):
1344
 
        from bzrlib.bzrdir import RepoInitHookParams
1345
 
        calls = []
1346
 
        bzrdir.BzrDir.hooks.install_named_hook('post_repo_init',
1347
 
            calls.append, None)
1348
 
        self.make_repository('foo')
1349
 
        self.assertLength(1, calls)
1350
 
        params = calls[0]
1351
 
        self.assertIsInstance(params, RepoInitHookParams)
1352
 
        self.assertTrue(hasattr(params, 'bzrdir'))
1353
 
        self.assertTrue(hasattr(params, 'repository'))