/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/branch_implementations/test_hooks.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-02-15 15:11:31 UTC
  • mfrom: (2230.3.55 branch6)
  • Revision ID: pqm@pqm.ubuntu.com-20070215151131-1f2ce67d76e40200
Provide new branch6 format

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
            [('set_rh', branch, [], True)])
43
43
 
44
44
    def test_set_rh_nonempty_history(self):
45
 
        branch = self.make_branch('source')
 
45
        tree = self.make_branch_and_memory_tree('source')
 
46
        tree.lock_write()
 
47
        tree.add('')
 
48
        tree.commit('empty commit', rev_id='foo')
 
49
        tree.unlock()
 
50
        branch = tree.branch
46
51
        Branch.hooks.install_hook('set_rh', self.capture_set_rh_hook)
47
52
        branch.set_revision_history([u'foo'])
48
53
        self.assertEqual(self.hook_calls,