868
868
executable3, file_status, resolver=resolver)
870
870
child_pb.finished()
871
self.tt.fixup_new_roots()
872
872
self._finish_computing_transform()
874
874
def _finish_computing_transform(self):
1316
1317
self._raw_conflicts.append(('path conflict', trans_id, file_id,
1317
1318
this_parent, this_name,
1318
1319
other_parent, other_name))
1319
if other_name is None:
1320
if not self.other_tree.has_id(file_id):
1320
1321
# it doesn't matter whether the result was 'other' or
1321
# 'conflict'-- if there's no 'other', we leave it alone.
1322
# 'conflict'-- if it has no file id, we leave it alone.
1323
1324
parent_id = parents[self.winner_idx[parent_id_winner]]
1324
if parent_id is not None:
1325
name = names[self.winner_idx[name_winner]]
1326
if parent_id is not None or name is not None:
1325
1327
# if we get here, name_winner and parent_winner are set to safe
1327
self.tt.adjust_path(names[self.winner_idx[name_winner]],
1328
self.tt.trans_id_file_id(parent_id),
1329
if parent_id is None and name is not None:
1330
# if parent_id is None and name is non-None, current file is
1332
if names[self.winner_idx[parent_id_winner]] != '':
1333
raise AssertionError(
1334
'File looks like a root, but named %s' %
1335
names[self.winner_idx[parent_id_winner]])
1336
parent_trans_id = transform.ROOT_PARENT
1338
parent_trans_id = self.tt.trans_id_file_id(parent_id)
1339
self.tt.adjust_path(name, parent_trans_id,
1329
1340
self.tt.trans_id_file_id(file_id))
1331
1342
def _do_merge_contents(self, file_id):