Unshelved from pending changelist '16239478':

PR #7989: Fixed issue where file history was truncated for moved files (Contributed by rtjonnyr)

#jira UE-115245
#rb Sebastien.Lussier
#github
#preflight 60d23e9aa8190400014cad5d

[CL 16749525 by rtjonnyr in ue5-main branch]
This commit is contained in:
rtjonnyr
2021-06-22 17:24:31 -04:00
parent 587cc5ec44
commit 69315081ec

View File

@@ -1437,6 +1437,12 @@ static void ParseHistoryResults(const FP4RecordSet& InRecords, const TArray<FPer
FString DepotFileName = ClientRecord(TEXT("depotFile"));
FString LocalFileName = FindWorkspaceFile(InStates, DepotFileName);
if (OutHistory.Contains(LocalFileName))
{
// If a file existed in a location multiple times we rely on the first, most recent record having all the revisions we are interested in
continue;
}
TArray< TSharedRef<FPerforceSourceControlRevision, ESPMode::ThreadSafe> > Revisions;
int32 RevisionNumbers = 0;
for (;;)