2289
2286
if from_dir is None and include_root is True:
2290
2287
root_entry = inventory.make_entry(
2291
'directory', '', ROOT_PARENT, self.get_root_id())
2288
'directory', '', ROOT_PARENT, self.path2id(''))
2292
2289
yield '', 'V', 'directory', root_entry
2293
2290
entries = self._iter_entries_for_dir(from_dir or '')
2294
2291
for path, entry in entries: