Skip to content

Commit

Permalink
[#31] Implement listHistoryLog method
Browse files Browse the repository at this point in the history
Fixes #31
  • Loading branch information
ruspl-afed committed Nov 12, 2024
1 parent ab120ee commit 91e4f02
Showing 1 changed file with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Optional;
Expand Down Expand Up @@ -486,8 +487,25 @@ public void removeRemote(String[] path, String message, long options, Map revPro
public void listHistoryLog(SVNEntryReference reference, SVNRevisionRange[] revisionRanges, String[] revProps,
long limit, long options, ISVNLogEntryCallback cb, ISVNProgressMonitor monitor)
throws SVNConnectorException {
System.out.println("SvnKit1_10Connector.listHistoryLog()");
//TODO
Map<String, Object> parameters = new HashMap<>();
parameters.put("reference", reference); //$NON-NLS-1$
parameters.put("revisionRanges", revisionRanges); //$NON-NLS-1$
parameters.put("revProps", revProps); //$NON-NLS-1$
parameters.put("limit", Long.valueOf(limit)); //$NON-NLS-1$
parameters.put("options", Long.valueOf(options)); //$NON-NLS-1$
parameters.put("cb", cb); //$NON-NLS-1$
parameters.put("monitor", monitor); //$NON-NLS-1$
watch.commandLong(ISVNCallListener.LIST_HISTORY_LOG, parameters, callback(monitor), //
p -> client.logMessages(//
reference.path, //
new RevisionAdapter(reference.pegRevision).adapt(), //
Arrays.asList(ConversionUtility.convert(revisionRanges)), //
(options & Options.STOP_ON_COPY) != 0, //
(options & Options.DISCOVER_PATHS) != 0, //
(options & Options.INCLUDE_MERGED_REVISIONS) != 0, //
new HashSet<>(Arrays.asList(revProps)), //
limit, //
ConversionUtility.convert(cb)));
}

@Override
Expand Down

0 comments on commit 91e4f02

Please sign in to comment.