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

  • Committer: Vincent Ladeuil
  • Date: 2010-01-25 17:48:22 UTC
  • mto: (4987.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4988.
  • Revision ID: v.ladeuil+lp@free.fr-20100125174822-nce4l19sbwx83jvq
Deploying the new overrideAttr facility further reduces the complexity
and make the code clearer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
507
507
 
508
508
    def setUp(self):
509
509
        super(TestCommitProgress, self).setUp()
510
 
        self.addAttrCleanup(ui, 'ui_factory')
511
510
        ui.ui_factory = CapturingUIFactory()
512
511
 
513
512
    def test_commit_progress_steps(self):
617
616
                mutabletree.MutableTree))
618
617
            open(tree.abspath("newfile"), 'w').write("data")
619
618
            params.mutable_tree.add(["newfile"])
620
 
        def restoreDefaults():
621
 
            # We can't use addAttrCleanup here since we want to restore only
622
 
            # part of the dict -- vila 100123
623
 
            mutabletree.MutableTree.hooks['post_commit'] = []
624
 
        self.addCleanup(restoreDefaults)
625
619
        tree = self.make_branch_and_tree('.')
626
620
        mutabletree.MutableTree.hooks.install_named_hook(
627
621
            'post_commit',