Changeset 34999 in osm
- Timestamp:
- 2019-05-16T07:49:43+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reverter/src/reverter/ChangesetReverter.java
r34961 r34999 161 161 for (PrimitiveId id : cds.getIds()) { 162 162 ChangesetDataSetEntry first = cds.getFirstEntry(id); 163 ChangesetDataSetEntry last = cds.getLastEntry(id);164 163 earliestVersions.put(id, (int) first.getPrimitive().getVersion()); 165 if (first.getModificationType() == ChangesetModificationType.CREATED) 166 created.add(first.getPrimitive()); 167 else if (last.getModificationType() == ChangesetModificationType.UPDATED) 168 updated.add(last.getPrimitive()); 169 else if (last.getModificationType() == ChangesetModificationType.DELETED) 170 deleted.add(last.getPrimitive()); 164 ChangesetDataSetEntry entry = first.getModificationType() == ChangesetModificationType.CREATED ? first 165 : cds.getLastEntry(id); 166 if (checkOsmChangeEntry(entry)) { 167 if (entry.getModificationType() == ChangesetModificationType.CREATED) { 168 created.add(entry.getPrimitive()); 169 } else if (entry.getModificationType() == ChangesetModificationType.UPDATED) { 170 updated.add(entry.getPrimitive()); 171 } else if (entry.getModificationType() == ChangesetModificationType.DELETED) { 172 deleted.add(entry.getPrimitive()); 173 } 174 } 171 175 } 172 176 }
Note:
See TracChangeset
for help on using the changeset viewer.