~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Aaron Bentley
  • Date: 2007-08-21 01:32:29 UTC
  • mfrom: (2727 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2736.
  • Revision ID: aaron.bentley@utoronto.ca-20070821013229-miopsemz249tv0bl
Merge 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)])