141
141
t = self.make_branch_and_tree('.')
142
142
t.has_versioned_directories = lambda: False
143
143
self.build_tree(['a', 'b/', 'b/c'])
144
t.add(['a', 'b', 'b/c'], ['a-id', 'b-id', 'c-id'])
144
t.add(['a', 'b', 'b/c'], [b'a-id', b'b-id', b'c-id'])
145
145
self.assertIs(None, HasLayout(['', 'a', 'b/', 'b/c']).match(t))
146
146
self.assertIs(None, HasLayout(['', 'a', 'b/', 'b/c', 'd/']).match(t))
147
147
mismatch = HasLayout([u'', u'a', u'd/']).match(t)