perforce / p4transfer

[Community Supported] Utility for transferring a subset of files (with complete history of all changelists) from one Helix Core repository to another, only requiring read access to the source repository.
BSD 2-Clause "Simplified" License
43 stars 19 forks source link

Issues replicating combined integrate (add) + edit #11

Open swc-jesse opened 3 years ago

swc-jesse commented 3 years ago

I have noticed there can be issues when files are copied from one depot location to another and edited in the same change list before they were submitted (sometimes referred to as an "edigrate"). In this case, the added file was copied from another depot location and then edited before submission:

2021-10-29 03:27:01,402:P4Transfer:ERROR: Replication failure: src/target content differences found
src:rev=1 action=add type=text size=18847 digest=1143C61AAA76935548760CACCE135A60 depotFile=//Foo/Bar.cs
targ:rev=1 action=add type=text size=18859 digest=DC71D925CE536B7E669FA4FF7117EA25 depotFile=//Foo/Bar.cs

In this case should the source file be re-synced to account for the edit during the copy / add?