From 0fdef18bc41625587d6b60a932bdf98a11283cf6 Mon Sep 17 00:00:00 2001 From: Alexander Fedorov Date: Wed, 8 Jan 2025 21:44:17 +0300 Subject: [PATCH] [#103] Implement `removeLocal` method Fixes #103 --- .../internal/svnkit1_10/SvnKit1_10Connector.java | 13 +++++++++++-- 1 file changed, 11 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 2c8e410..cae81f5 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 @@ -1039,8 +1039,17 @@ public void copyRemote(SVNEntryRevisionReference[] srcPaths, String destPath, St @Override public void removeLocal(String[] path, long options, ISVNProgressMonitor monitor) throws SVNConnectorException { - System.out.println("SvnKit1_10Connector.removeLocal()"); - //TODO + Map parameters = new HashMap<>(); + parameters.put("path", path); + parameters.put("options", Long.valueOf(options)); + parameters.put("monitor", monitor); + watch.commandLong(ISVNCallListener.REMOVE_LOCAL, parameters, callback(monitor), p -> client.remove(// + new HashSet<>(Arrays.asList(path)), // + (options & Options.FORCE) != 0, // + (options & Options.KEEP_LOCAL) != 0, // + null, // + null, // + null)); } @SuppressWarnings("rawtypes")