70
71
def test_commit_without_root(self):
71
72
"""This should cause a deprecation warning, not an assertion failure"""
72
73
tree = self.make_branch_and_tree(".")
74
77
tree.add('foo', 'foo-id')
75
78
entry = tree.inventory['foo-id']
76
79
builder = tree.branch.get_commit_builder([])
77
80
self.callDeprecated(['Root entry should be supplied to'
79
82
builder.record_entry_contents, entry, [], 'foo', tree)
80
83
builder.finish_inventory()
81
84
rev_id = builder.commit('foo bar')