3274
3274
def _prepare_orphan(self, wt):
3276
wt.add(['dir', 'dir/file'], ['dir-id', 'file-id'])
3278
3278
tt = transform.TreeTransform(wt)
3279
3279
self.addCleanup(tt.finalize)
3280
3281
dir_tid = tt.trans_id_tree_path('dir')
3281
3283
orphan_tid = tt.trans_id_tree_path('dir/foo')
3282
3286
tt.delete_contents(dir_tid)
3283
3287
tt.unversion_file(dir_tid)
3284
3289
raw_conflicts = tt.find_conflicts()
3285
3290
self.assertLength(1, raw_conflicts)
3286
3291
self.assertEqual(('missing parent', 'new-1'), raw_conflicts[0])