Skip to content

Conversation

@437569
Copy link

@437569 437569 commented Aug 4, 2025

Issue:

In case when source depot contains multiple integration records of the same depotfile, the original script only takes the first record.

Such cases can be easily observed on dirty moves, that in one CL, file A is branched into file B and file A is deleted. Running p4 filelog with file B's path will add into the result the older integration record of A.

Solution:

Preprocess the filelog result so that only the latest record for each file as returned from p4 filelog is being processed.

…he same file in source depot

## Issue:

In case when source depot contains multiple integration records of the same depotfile, the original script only takes the first record.

Such cases can be easily observed on dirty moves, that in **one CL**, file A is branched into file B and file A is deleted. Running `p4 filelog` with file B's path will add into the result the older integration record of A.

## Solution:

Preprocess the filelog result so that only the latest record for each file as returned from `p4 filelog` is being processed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant