Skip to content

Commit

Permalink
[#101] Implement copyRemote method
Browse files Browse the repository at this point in the history
Fixes #101
  • Loading branch information
ruspl-afed authored and eparovyshnaya committed Jan 8, 2025
1 parent 9c533e4 commit cb302e6
Showing 1 changed file with 19 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@ public void copyLocal(SVNEntryRevisionReference[] srcPaths, String destPath, lon
parameters.put("monitor", monitor);
watch.commandLong(ISVNCallListener.COPY_LOCAL, parameters, callback(monitor), p -> client.copy(//
Arrays.asList(new SvnNullableArray<>(srcPaths, CopySource[]::new,
s -> new RevisionReverenceAdapter(s).adapt()).adapt()), //
s -> new RevisionReverenceAdapter(s).adapt()).adapt()), //
destPath, //
true, //
false, //
Expand All @@ -1017,8 +1017,24 @@ public void copyLocal(SVNEntryRevisionReference[] srcPaths, String destPath, lon
public void copyRemote(SVNEntryRevisionReference[] srcPaths, String destPath, String message, long options,
Map revProps, Map<String, List<SVNExternalReference>> externalsToPin, ISVNProgressMonitor monitor)
throws SVNConnectorException {
System.out.println("SvnKit1_10Connector.copyRemote()");
//TODO
Map<String, Object> parameters = new HashMap<>();
parameters.put("srcPaths", srcPaths);
parameters.put("destPath", destPath);
parameters.put("message", message);
parameters.put("options", Long.valueOf(options));
parameters.put("revProps", revProps);
parameters.put("externalsToPin", externalsToPin);
parameters.put("monitor", monitor);
watch.commandLong(ISVNCallListener.COPY_REMOTE, parameters, callback(monitor), p -> client.copy(//
Arrays.asList(new SvnNullableArray<>(srcPaths, CopySource[]::new,
s -> new RevisionReverenceAdapter(s).adapt()).adapt()), //
destPath, //
(options & Options.INTERPRET_AS_CHILD) != 0, //
(options & Options.INCLUDE_PARENTS) != 0, //
false, //
new RevProps(revProps).adapt(), //
new CommitMessage(message),
new CommitStatusCallback(monitor)));
}

@Override
Expand Down

0 comments on commit cb302e6

Please sign in to comment.