/** * @deprecated Use {@link #copy(CopySource[], String, String, boolean, * boolean, Map)} instead. * @since 1.0 */ public void copy(String srcPath, String destPath, String message, Revision revision) throws ClientException { copy(new CopySource[] { new CopySource(srcPath, revision, Revision.HEAD) }, destPath, message, true, false, null); }
private SVNCopySource[] getCopySources(CopySource[] srcs, boolean copyAsChild) throws ClientException { if (srcs.length > 1 && !copyAsChild) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.CLIENT_MULTIPLE_SOURCES_DISALLOWED); SVNException ex = new SVNException(err); throwException(ex); } SVNCopySource[] sources = new SVNCopySource[srcs.length]; try { for (int i = 0; i < srcs.length; i++) { if (isURL(srcs[i].getPath())) { sources[i] = new SVNCopySource(JavaHLObjectFactory.getSVNRevision(srcs[i].getPegRevision()), JavaHLObjectFactory.getSVNRevision(srcs[i].getRevision()), SVNURL.parseURIEncoded(srcs[i].getPath())); } else { sources[i] = new SVNCopySource(JavaHLObjectFactory.getSVNRevision(srcs[i].getPegRevision()), JavaHLObjectFactory.getSVNRevision(srcs[i].getRevision()), new File(srcs[i].getPath()).getAbsoluteFile()); } } } catch (SVNException e) { throwException(e); } finally { resetLog(); } return sources; }
private SVNCopySource[] getCopySources(CopySource[] srcs, boolean copyAsChild) throws ClientException { if (srcs.length > 1 && !copyAsChild) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.CLIENT_MULTIPLE_SOURCES_DISALLOWED); SVNException ex = new SVNException(err); throwException(ex); } SVNCopySource[] sources = new SVNCopySource[srcs.length]; try { for (int i = 0; i < srcs.length; i++) { if (isURL(srcs[i].getPath())) { sources[i] = new SVNCopySource(JavaHLObjectFactory.getSVNRevision(srcs[i].getPegRevision()), JavaHLObjectFactory.getSVNRevision(srcs[i].getRevision()), SVNURL.parseURIEncoded(srcs[i].getPath())); } else { sources[i] = new SVNCopySource(JavaHLObjectFactory.getSVNRevision(srcs[i].getPegRevision()), JavaHLObjectFactory.getSVNRevision(srcs[i].getRevision()), new File(srcs[i].getPath()).getAbsoluteFile()); } } } catch (SVNException e) { throwException(e); } finally { resetLog(); } return sources; }
/** * @deprecated Use {@link #copy(CopySource[], String, String, boolean, * boolean, Map)} instead. * @since 1.0 */ public void copy(String srcPath, String destPath, String message, Revision revision) throws ClientException { copy(new CopySource[] { new CopySource(srcPath, revision, Revision.HEAD) }, destPath, message, true, false, null); }
private SVNCopySource[] getCopySources(CopySource[] srcs, boolean copyAsChild) throws ClientException { if (srcs.length > 1 && !copyAsChild) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.CLIENT_MULTIPLE_SOURCES_DISALLOWED); SVNException ex = new SVNException(err); throwException(ex); } SVNCopySource[] sources = new SVNCopySource[srcs.length]; try { for (int i = 0; i < srcs.length; i++) { if (isURL(srcs[i].getPath())) { sources[i] = new SVNCopySource(JavaHLObjectFactory.getSVNRevision(srcs[i].getPegRevision()), JavaHLObjectFactory.getSVNRevision(srcs[i].getRevision()), SVNURL.parseURIEncoded(srcs[i].getPath())); } else { sources[i] = new SVNCopySource(JavaHLObjectFactory.getSVNRevision(srcs[i].getPegRevision()), JavaHLObjectFactory.getSVNRevision(srcs[i].getRevision()), new File(srcs[i].getPath()).getAbsoluteFile()); } } } catch (SVNException e) { throwException(e); } finally { resetLog(); } return sources; }
public void copy(String srcPath, String destPath, String message, Revision revision) throws ClientException { copy(new CopySource[]{new CopySource(srcPath, revision, null)}, destPath, message, true, false, null); }
public void copy(String srcPath, String destPath, String message, Revision revision) throws ClientException { copy(new CopySource[]{new CopySource(srcPath, revision, null)}, destPath, message, true, false, null); }
public void copy(String srcPath, String destPath, String message, Revision revision) throws ClientException { copy(new CopySource[]{new CopySource(srcPath, revision, null)}, destPath, message, true, false, null); }
public static CopySource createCopySource(SVNLocationEntry location) { return new CopySource(location.getPath(), Revision.getInstance(location.getRevision()), null); }
public static CopySource createCopySource(SVNLocationEntry location) { return new CopySource(location.getPath(), Revision.getInstance(location.getRevision()), null); }
public static CopySource createCopySource(SVNLocationEntry location) { return new CopySource(location.getPath(), Revision.getInstance(location.getRevision()), null); }
public static CopySource createCopySource(SVNLocationEntry location) { return new CopySource(location.getPath(), Revision.getInstance(location.getRevision()), null); }
new CopySource(new File(thisTest.getWorkingCopy(), "A/B/E/" + fileName).getPath(), firstRevision, pegRevision); wcSource[0] = new CopySource(new File(thisTest.getWorkingCopy(), "A/B").getPath(), Revision.WORKING, Revision.WORKING); client.commitMessageHandler(null);
new CopySource(new File(thisTest.getWorkingCopy(), "A/B/E/" + fileName).getPath(), firstRevision, pegRevision); wcSource[0] = new CopySource(new File(thisTest.getWorkingCopy(), "A/B").getPath(), Revision.WORKING, Revision.WORKING); client.commitMessageHandler(null);