221
218
Branch.hooks.install_named_hook(
222
219
'pre_change_branch_tip', hook_that_raises, None)
223
220
hook_failed_exc = self.assertRaises(
224
HookFailed, branch.set_last_revision_info, 0, NULL_REVISION)
221
PearShapedError, branch.set_last_revision_info, 0, NULL_REVISION)
226
222
# The revision info is unchanged.
227
223
self.assertEqual((2, 'two-\xc2\xb5'), branch.last_revision_info())