162
162
"""Tell the builder that the inventory is finished."""
163
163
if self.new_inventory.root is None:
164
164
raise AssertionError('Root entry should be supplied to'
167
166
self.new_inventory.add(InventoryDirectory(ROOT_ID, '', None))
168
167
self.new_inventory.revision_id = self._new_revision_id
169
168
self.inv_sha1 = self.repository.add_inventory(