Changeset 34036 in osm for applications/editors/josm/plugins/reverter
- Timestamp:
- 2018-01-28T20:57:36+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reverter/src/reverter/RevertChangesetTask.java
r34028 r34036 10 10 import java.util.List; 11 11 import java.util.concurrent.Callable; 12 import java.util.stream.Collectors; 12 13 13 14 import javax.swing.JOptionPane; … … 87 88 numberOfConflicts = 0; 88 89 final List<Command> allcmds = new ArrayList<>(); 89 Logging.info("Reverting {0} changeset(s): {1}", changesetIds.size(), changesetIds); 90 Logging.info("Reverting {0} changeset(s): {1}", 91 changesetIds.size(), changesetIds.stream().map(Long::toString).collect(Collectors.toList())); 90 92 for (int changesetId : changesetIds) { 91 93 try { 92 Logging.info("Reverting changeset {0}", changesetId); 93 allcmds.add(revertChangeset(changesetId)); 94 Logging.info("Reverted changeset {0}", changesetId); 94 Logging.info("Reverting changeset {0}", Long.toString(changesetId)); 95 RevertChangesetCommand cmd = revertChangeset(changesetId); 96 if (cmd != null) { 97 allcmds.add(cmd); 98 } 99 Logging.info("Reverted changeset {0}", Long.toString(changesetId)); 95 100 newLayer = false; // reuse layer for subsequent reverts 96 101 } catch (OsmTransferException e) { … … 154 159 List<Command> cmds = rev.getCommands(); 155 160 if (cmds.isEmpty()) { 156 String msg = MessageFormat.format("No revert commands found for changeset {0}", changesetId); 157 Logging.warn(msg); 158 throw new OsmTransferException(msg); 161 Logging.warn(MessageFormat.format("No revert commands found for changeset {0}", Long.toString(changesetId))); 162 return null; 159 163 } 160 164 for (Command c : cmds) {
Note:
See TracChangeset
for help on using the changeset viewer.