~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/branch_implementations/test_hooks.py

  • Committer: Andrew Bennetts
  • Date: 2007-08-30 08:11:54 UTC
  • mfrom: (2766 +trunk)
  • mto: (2535.3.55 repo-refactor)
  • mto: This revision was merged to the branch mainline in revision 2772.
  • Revision ID: andrew.bennetts@canonical.com-20070830081154-16hebp2xwr15x2hc
Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
        tree = self.make_branch_and_memory_tree('source')
46
46
        tree.lock_write()
47
47
        tree.add('')
 
48
        tree.commit('another commit', rev_id='f\xc2\xb5')
48
49
        tree.commit('empty commit', rev_id='foo')
49
50
        tree.unlock()
50
51
        branch = tree.branch
51
52
        Branch.hooks.install_hook('set_rh', self.capture_set_rh_hook)
 
53
        # some branches require that their history be set to a revision in the
 
54
        # repository
52
55
        branch.set_revision_history(['f\xc2\xb5'])
53
56
        self.assertEqual(self.hook_calls,
54
57
            [('set_rh', branch, ['f\xc2\xb5'], True)])