Missing old referenced feature versions in changefiles
Hello
Another complex case following #391. I figured out that some old versions of certain features were missing from catchup diff files processed between OSH date and current date during project initialisation.
Let's take the example of https://www.openstreetmap.org/way/1453831249 It has been created on 2025-11-26 and reference the node https://www.openstreetmap.org/node/5314458269 version 2. On 2025-11-28, node 5314458269 is edited to version 3.
I ran my init on 2025-12-04 with OSH file produced on 2025-11-24, so catchup has ran between those two dates. The processed diff was supposed to hold v2 and v3 of node 5314458269.
But output of osmium getif shows a different reality:
osmium getid -H -r -t /data/files/pdm/changes-test-1.osc.gz -f opl n5314458269
[======================================================================] 100%
n5314458269 v3 dV c175220717 t2025-11-28T02:14:39Z i8632048 urecoil1984 Tcompensator=shunt_capacitor,power=compensator x153.3969395 y-28.0934702
Only v3 seem to appear in the merged diff between 2025-11-24 and 2025-12-04. osmupdate looks like keeping only last versions when producing an osc file.
I expected to get the two versions to rebuild the way's geometry on 2025-11-26.