690
690
osutils.set_or_unset_env('BZR_EDITOR', "./fed.sh")
691
694
msgeditor.hooks.install_named_hook("commit_message_template",
692
695
lambda commit_obj, msg: "save me some typing\n", None)
693
696
tree = self.make_branch_and_tree('tree')
694
697
self.build_tree(['tree/hello.txt'])
697
704
last_rev = tree.branch.repository.get_revision(tree.last_revision())
698
705
self.assertEqual('save me some typing\n', last_rev.message)