From 91d04cf66c438afa296c0da6064a0ceba26536b9 Mon Sep 17 00:00:00 2001 From: Alexander Fedorov Date: Wed, 1 Jan 2025 22:15:23 +0300 Subject: [PATCH] [#39] Implement `add` method Fixes #39 --- .../internal/svnkit1_10/SvnKit1_10Connector.java | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/bundles/ru.arsysop.svn.connector.svnkit1_10/src/ru/arsysop/svn/connector/internal/svnkit1_10/SvnKit1_10Connector.java b/bundles/ru.arsysop.svn.connector.svnkit1_10/src/ru/arsysop/svn/connector/internal/svnkit1_10/SvnKit1_10Connector.java index dccf3ac..181c79c 100644 --- a/bundles/ru.arsysop.svn.connector.svnkit1_10/src/ru/arsysop/svn/connector/internal/svnkit1_10/SvnKit1_10Connector.java +++ b/bundles/ru.arsysop.svn.connector.svnkit1_10/src/ru/arsysop/svn/connector/internal/svnkit1_10/SvnKit1_10Connector.java @@ -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 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")