checkout.setDepth(svnDepth); checkout.setAllowUnversionedObstructions(true); checkout.setUpdateLocksOnDemand(svnuc.isUpdateLocksOnDemand()); checkout.setIgnoreExternals(svnuc.isIgnoreExternals()); checkout.setExternalsHandler(SvnCodec.externalsHandler(svnuc.getExternalsHandler()));
int admOpenDepth = depthIsSticky ? -1 : getLevelsToLockFromDepth(depth); try { if (isUpdateLocksOnDemand()) { wcAccess.openAnchor(path, true, 0); wcAccess.close(); adminInfo = wcAccess.openAnchor(path, !isUpdateLocksOnDemand(), admOpenDepth); SVNAdminArea anchorArea = adminInfo.getAnchor(); boolean serverSupportsDepth = repos.hasCapability(SVNCapability.DEPTH); final SVNReporter reporter = new SVNReporter(adminInfo, path, true, !serverSupportsDepth, depth, isUpdateLocksOnDemand(), false, !depthIsSticky, getDebugLog()); depthIsSticky, depth, preservedExts, fileFetcher, isUpdateLocksOnDemand());
public long[] doUpdate(File[] paths, SVNRevision revision, SVNDepth depth, boolean allowUnversionedObstructions, boolean depthIsSticky, boolean makeParents) throws SVNException { if (paths == null || paths.length == 0) { return new long[0]; } SvnUpdate up = getOperationsFactory().createUpdate(); up.setUpdateLocksOnDemand(isUpdateLocksOnDemand()); for (int i = 0; i < paths.length; i++) { up.addTarget(SvnTarget.fromFile(paths[i])); } up.setRevision(revision); up.setDepth(depth); up.setDepthIsSticky(depthIsSticky); up.setAllowUnversionedObstructions(allowUnversionedObstructions); up.setIgnoreExternals(isIgnoreExternals()); up.setMakeParents(makeParents); up.setExternalsHandler(SvnCodec.externalsHandler(getExternalsHandler())); return up.run(); }
public long doSwitch(File path, SVNURL url, SVNRevision pegRevision, SVNRevision revision, SVNDepth depth, boolean allowUnversionedObstructions, boolean depthIsSticky, boolean ignoreAncestry) throws SVNException { SvnSwitch sw = getOperationsFactory().createSwitch(); sw.setUpdateLocksOnDemand(isUpdateLocksOnDemand()); sw.setSwitchTarget(SvnTarget.fromURL(url, pegRevision)); sw.setSingleTarget(SvnTarget.fromFile(path)); sw.setRevision(revision); sw.setDepth(depth); sw.setDepthIsSticky(depthIsSticky); sw.setAllowUnversionedObstructions(allowUnversionedObstructions); sw.setIgnoreAncestry(ignoreAncestry); sw.setIgnoreExternals(isIgnoreExternals()); sw.setExternalsHandler(SvnCodec.externalsHandler(getExternalsHandler())); return sw.run(); }
int admOpenDepth = depthIsSticky ? -1 : getLevelsToLockFromDepth(depth); try { if (isUpdateLocksOnDemand()) { wcAccess.openAnchor(path, true, 0); wcAccess.close(); adminInfo = wcAccess.openAnchor(path, !isUpdateLocksOnDemand(), admOpenDepth); SVNAdminArea anchorArea = adminInfo.getAnchor(); boolean serverSupportsDepth = repos.hasCapability(SVNCapability.DEPTH); final SVNReporter reporter = new SVNReporter(adminInfo, path, true, !serverSupportsDepth, depth, isUpdateLocksOnDemand(), false, !depthIsSticky, getDebugLog()); depthIsSticky, depth, preservedExts, fileFetcher, isUpdateLocksOnDemand());
co.setUpdateLocksOnDemand(isUpdateLocksOnDemand()); co.setSource(SvnTarget.fromURL(url, pegRevision)); co.setSingleTarget(SvnTarget.fromFile(dstPath));
SvnExport export = getOperationsFactory().createExport(); export.setUpdateLocksOnDemand(isUpdateLocksOnDemand()); export.setSingleTarget(SvnTarget.fromFile(dstPath)); export.setSource(SvnTarget.fromURL(url, pegRevision));
export.setUpdateLocksOnDemand(isUpdateLocksOnDemand()); export.setSingleTarget(SvnTarget.fromFile(dstPath)); export.setSource(SvnTarget.fromFile(srcPath, pegRevision));