Skip to content

Commit

Permalink
[#39] Implement add method
Browse files Browse the repository at this point in the history
Fixes #39
  • Loading branch information
ruspl-afed authored and eparovyshnaya committed Jan 2, 2025
1 parent 7d148a0 commit 47fef53
Showing 1 changed file with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,20 @@ public void unlock(String[] path, long options, ISVNProgressMonitor monitor) thr
@Override
public void add(String path, SVNDepth depth, long options, ISVNProgressMonitor monitor)
throws SVNConnectorException {
System.out.println("SvnKit1_10Connector.add()");
//TODO
Map<String, Object> parameters = new HashMap<>();
parameters.put("path", path);
parameters.put("depth", depth);
parameters.put("options", Long.valueOf(options));
parameters.put("monitor", monitor);
watch.commandLong(ISVNCallListener.LOCK, //
parameters, //
callback(monitor), //
p -> client.add(path, //
new DepthAdapter(depth).adapt(), //
(options & Options.FORCE) != 0, //
(options & Options.INCLUDE_IGNORED) != 0, //
(options & Options.IGNORE_AUTOPROPS) != 0, //
(options & Options.INCLUDE_PARENTS) != 0));
}

@SuppressWarnings("rawtypes")
Expand Down

0 comments on commit 47fef53

Please sign in to comment.