public void add(String path, int depth, boolean force, boolean noIgnores, boolean addParents) throws ClientException { SVNWCClient wcClient = getSVNWCClient(); try { wcClient.doAdd(new File(path).getAbsoluteFile(), force, false, false, JavaHLObjectFactory.getSVNDepth(depth), noIgnores, addParents); } catch (SVNException e) { throwException(e); } finally { resetLog(); } }
public void add(String path, int depth, boolean force, boolean noIgnores, boolean addParents) throws ClientException { SVNWCClient wcClient = getSVNWCClient(); try { wcClient.doAdd(new File(path).getAbsoluteFile(), force, false, false, JavaHLObjectFactory.getSVNDepth(depth), noIgnores, addParents); } catch (SVNException e) { throwException(e); } finally { resetLog(); } }
public void add(String path, int depth, boolean force, boolean noIgnores, boolean addParents) throws ClientException { SVNWCClient wcClient = getSVNWCClient(); try { wcClient.doAdd(new File(path).getAbsoluteFile(), force, false, false, JavaHLObjectFactory.getSVNDepth(depth), noIgnores, addParents); } catch (SVNException e) { throwException(e); } finally { resetLog(); } }
public void resolve(String path, int depth, int conflictResult) throws ClientException { SVNWCClient client = getSVNWCClient(); try { client.doResolve(new File(path).getAbsoluteFile(), JavaHLObjectFactory.getSVNDepth(depth), JavaHLObjectFactory.getSVNConflictChoice(conflictResult)); } catch (SVNException e) { throwException(e); } finally { resetLog(); } }
public void propertyRemove(String path, String name, int depth, String[] changelists) throws ClientException { SVNWCClient client = getSVNWCClient(); try { client.doSetProperty(new File(path).getAbsoluteFile(), name, null, false, JavaHLObjectFactory.getSVNDepth(depth), ISVNPropertyHandler.NULL, JavaHLObjectFactory.getChangeListsCollection(changelists)); } catch (SVNException e) { throwException(e); } finally { resetLog(); } }
public void propertyRemove(String path, String name, int depth, String[] changelists) throws ClientException { SVNWCClient client = getSVNWCClient(); try { client.doSetProperty(new File(path).getAbsoluteFile(), name, null, false, JavaHLObjectFactory.getSVNDepth(depth), ISVNPropertyHandler.NULL, JavaHLObjectFactory.getChangeListsCollection(changelists)); } catch (SVNException e) { throwException(e); } finally { resetLog(); } }
public void resolve(String path, int depth, int conflictResult) throws ClientException { SVNWCClient client = getSVNWCClient(); try { client.doResolve(new File(path).getAbsoluteFile(), JavaHLObjectFactory.getSVNDepth(depth), JavaHLObjectFactory.getSVNConflictChoice(conflictResult)); } catch (SVNException e) { throwException(e); } finally { resetLog(); } }
public void resolve(String path, int depth, int conflictResult) throws ClientException { SVNWCClient client = getSVNWCClient(); try { client.doResolve(new File(path).getAbsoluteFile(), JavaHLObjectFactory.getSVNDepth(depth), JavaHLObjectFactory.getSVNConflictChoice(conflictResult)); } catch (SVNException e) { throwException(e); } finally { resetLog(); } }
public void propertyRemove(String path, String name, int depth, String[] changelists) throws ClientException { SVNWCClient client = getSVNWCClient(); try { client.doSetProperty(new File(path).getAbsoluteFile(), name, null, false, JavaHLObjectFactory.getSVNDepth(depth), ISVNPropertyHandler.NULL, JavaHLObjectFactory.getChangeListsCollection(changelists)); } catch (SVNException e) { throwException(e); } finally { resetLog(); } }
public void revert(String path, int depth, String[] changelists) throws ClientException { SVNWCClient client = getSVNWCClient(); try { client.doRevert(new File[] { new File(path).getAbsoluteFile() }, JavaHLObjectFactory.getSVNDepth(depth), JavaHLObjectFactory.getChangeListsCollection(changelists)); } catch (SVNException e) { throwException(e); } finally { resetLog(); } }
private void propertyCreate(String path, String name, SVNPropertyValue value, int depth, String[] changelists, boolean force) throws ClientException { SVNWCClient client = getSVNWCClient(); try { client.doSetProperty(new File(path).getAbsoluteFile(), name, value, force, JavaHLObjectFactory.getSVNDepth(depth), ISVNPropertyHandler.NULL, JavaHLObjectFactory.getChangeListsCollection(changelists)); } catch (SVNException e) { throwException(e); } finally { resetLog(); } }
public void revert(String path, int depth, String[] changelists) throws ClientException { SVNWCClient client = getSVNWCClient(); try { client.doRevert(new File[] { new File(path).getAbsoluteFile() }, JavaHLObjectFactory.getSVNDepth(depth), JavaHLObjectFactory.getChangeListsCollection(changelists)); } catch (SVNException e) { throwException(e); } finally { resetLog(); } }
private void propertyCreate(String path, String name, SVNPropertyValue value, int depth, String[] changelists, boolean force) throws ClientException { SVNWCClient client = getSVNWCClient(); try { client.doSetProperty(new File(path).getAbsoluteFile(), name, value, force, JavaHLObjectFactory.getSVNDepth(depth), ISVNPropertyHandler.NULL, JavaHLObjectFactory.getChangeListsCollection(changelists)); } catch (SVNException e) { throwException(e); } finally { resetLog(); } }
public void revert(String path, int depth, String[] changelists) throws ClientException { SVNWCClient client = getSVNWCClient(); try { client.doRevert(new File[] { new File(path).getAbsoluteFile() }, JavaHLObjectFactory.getSVNDepth(depth), JavaHLObjectFactory.getChangeListsCollection(changelists)); } catch (SVNException e) { throwException(e); } finally { resetLog(); } }
private void propertyCreate(String path, String name, SVNPropertyValue value, int depth, String[] changelists, boolean force) throws ClientException { SVNWCClient client = getSVNWCClient(); try { client.doSetProperty(new File(path).getAbsoluteFile(), name, value, force, JavaHLObjectFactory.getSVNDepth(depth), ISVNPropertyHandler.NULL, JavaHLObjectFactory.getChangeListsCollection(changelists)); } catch (SVNException e) { throwException(e); } finally { resetLog(); } }
public void properties(String path, Revision revision, Revision pegRevision, int depth, String[] changelists, ProplistCallback callback) throws ClientException { if (path == null || callback == null) { return; } PropertyData[] properties = properties(path, revision, pegRevision, JavaHLObjectFactory.getSVNDepth(depth), changelists); Map propsMap = new SVNHashMap(); for (int i = 0; i < properties.length; i++) { propsMap.put(properties[i].getName(), properties[i].getValue()); } callback.singlePath(path, propsMap); }
public void properties(String path, Revision revision, Revision pegRevision, int depth, String[] changelists, ProplistCallback callback) throws ClientException { if (path == null || callback == null) { return; } PropertyData[] properties = properties(path, revision, pegRevision, JavaHLObjectFactory.getSVNDepth(depth), changelists); Map propsMap = new SVNHashMap(); for (int i = 0; i < properties.length; i++) { propsMap.put(properties[i].getName(), properties[i].getValue()); } callback.singlePath(path, propsMap); }
public long doSwitch(String path, String url, Revision revision, Revision pegRevision, int depth, boolean depthIsSticky, boolean ignoreExternals, boolean allowUnverObstructions) throws ClientException { SVNUpdateClient updater = getSVNUpdateClient(); try { return updater.doSwitch(new File(path).getAbsoluteFile(), SVNURL.parseURIEncoded(url), JavaHLObjectFactory.getSVNRevision(pegRevision), JavaHLObjectFactory.getSVNRevision(revision), JavaHLObjectFactory.getSVNDepth(depth), allowUnverObstructions, depthIsSticky); } catch (SVNException e) { throwException(e); } finally { resetLog(); } return -1; }
public void doImport(String path, String url, String message, int depth, boolean noIgnore, boolean ignoreUnknownNodeTypes, Map revprops) throws ClientException { SVNCommitClient commitClient = getSVNCommitClient(); try { commitClient.setCommitHandler(createCommitMessageHandler(false, true)); SVNProperties revisionProperties = revprops == null ? null : SVNProperties.wrap(revprops); commitClient.doImport(new File(path), SVNURL.parseURIEncoded(url), message, revisionProperties, !noIgnore, ignoreUnknownNodeTypes, JavaHLObjectFactory.getSVNDepth(depth)); } catch (SVNException e) { throwException(e); } finally { if (commitClient != null) { commitClient.setCommitHandler(null); } resetLog(); } }
public void doImport(String path, String url, String message, int depth, boolean noIgnore, boolean ignoreUnknownNodeTypes, Map revprops) throws ClientException { SVNCommitClient commitClient = getSVNCommitClient(); try { commitClient.setCommitHandler(createCommitMessageHandler(false, true)); SVNProperties revisionProperties = revprops == null ? null : SVNProperties.wrap(revprops); commitClient.doImport(new File(path), SVNURL.parseURIEncoded(url), message, revisionProperties, !noIgnore, ignoreUnknownNodeTypes, JavaHLObjectFactory.getSVNDepth(depth)); } catch (SVNException e) { throwException(e); } finally { if (commitClient != null) { commitClient.setCommitHandler(null); } resetLog(); } }