1008
1008
(('', '', 'TREE_ROOT'), [
1009
1009
('d', '', 0, False, dirstate.DirState.NULLSTAT), # current tree
1011
(('', 'a file', 'a file id'), [
1011
(('', 'a file', 'a-file-id'), [
1012
1012
('f', '1'*20, 19, False, dirstate.pack_stat(stat)), # current tree
1016
state.add('a file', 'a file id', 'file', stat, '1'*20)
1016
state.add('a file', 'a-file-id', 'file', stat, '1'*20)
1017
1017
# having added it, it should be in the output of iter_entries.
1018
1018
self.assertEqual(expected_entries, list(state._iter_entries()))
1019
1019
# saving and reloading should not affect this.