128
133
trunk = tree.branch.create_clone_on_transport(
129
134
self.get_transport('trunk'))
130
135
revid = tree.commit('a second commit')
132
136
target_transport = self.get_transport('target')
134
138
branch.Branch.hooks.install_named_hook(
135
139
'pre_change_branch_tip', self.assertBranchHookBranchIsStacked, None)
138
147
self.assertEqual(revid, result.last_revision())
139
148
self.assertEqual(trunk.base, result.get_stacked_on_url())
140
149
# Smart servers invoke hooks on both sides