147
147
wt.set_root_id('fixed-root')
148
148
wt.commit('lala!', rev_id='revision-1', allow_pointless=True)
149
149
tree = wt.branch.repository.revision_tree('revision-1')
150
self.assertEqual(list(tree.list_files()), [('', 'V', 'directory',
151
'fixed-root', InventoryDirectory('fixed-root', '', None))])
153
self.assertEqual([('', 'V', 'directory', 'fixed-root', expected)],
152
155
tree = wt.branch.repository.revision_tree(None)
153
156
self.assertEqual([], list(tree.list_files()))
154
157
tree = wt.branch.repository.revision_tree(NULL_REVISION)