Ticket #11136: 11136.patch

File 11136.patch, 915 bytes (added by GerdP, 6 years ago)
  • src/reverter/ChangesetReverter.java

     
    421421        // Check objects versions
    422422        for (Iterator<ChangesetDataSetEntry> it = cds.iterator(); it.hasNext();) {
    423423            ChangesetDataSetEntry entry = it.next();
     424            ChangesetDataSetEntry first = cds.getFirstEntry(entry.getPrimitive().getPrimitiveId());
     425            if (entry.getPrimitive().getVersion() != first.getPrimitive().getVersion()) {
     426                // ignore all but the first change to an object
     427                continue;
     428            }
    424429            if (!checkOsmChangeEntry(entry)) continue;
    425430            HistoryOsmPrimitive hp = entry.getPrimitive();
    426431            OsmPrimitive dp = ds.getPrimitiveById(hp.getPrimitiveId());