/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/workingtree_implementations/test_commit.py

  • Committer: Daniel Watkins
  • Date: 2008-04-20 08:21:39 UTC
  • mto: (3394.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 3395.
  • Revision ID: d.m.watkins@warwick.ac.uk-20080420082139-3273sz01qsc98ddj
Updated tests to use install_named_hook.

Show diffs side-by-side

added added

removed removed

Lines of Context:
548
548
            mutabletree.MutableTree.hooks['start_commit'] = []
549
549
        self.addCleanup(restoreDefaults)
550
550
        tree = self.make_branch_and_tree('.')
551
 
        mutabletree.MutableTree.hooks.install_hook('start_commit', 
552
 
            start_commit_hook_adds_file)
 
551
        mutabletree.MutableTree.hooks.install_named_hook(
 
552
            'start_commit',
 
553
            start_commit_hook_adds_file,
 
554
            None)
553
555
        revid = tree.commit('first post')
554
556
        committed_tree = tree.basis_tree()
555
557
        self.assertTrue(committed_tree.has_filename("newfile"))