private void deleteExternal(File external) throws SVNException { SVNWCAccess wcAccess = createWCAccess(); SVNAdminArea adminArea = wcAccess.open(external, true, SVNWCAccess.INFINITE_DEPTH); SVNException error = null; try { adminArea.removeFromRevisionControl(adminArea.getThisDirName(), true, false); } catch (SVNException svne) { getDebugLog().logFine(SVNLogType.WC, svne); error = svne; } if (error == null || error.getErrorMessage().getErrorCode() == SVNErrorCode.WC_LEFT_LOCAL_MOD) { wcAccess.close(); } if (error != null && error.getErrorMessage().getErrorCode() == SVNErrorCode.WC_LEFT_LOCAL_MOD) { external.getParentFile().mkdirs(); File newLocation = SVNFileUtil.createUniqueFile(external.getParentFile(), external.getName(), ".OLD", false); SVNFileUtil.rename(external, newLocation); } else if (error != null) { throw error; } }
private void deleteExternal(File external) throws SVNException { SVNWCAccess wcAccess = createWCAccess(); SVNAdminArea adminArea = wcAccess.open(external, true, SVNWCAccess.INFINITE_DEPTH); SVNException error = null; try { adminArea.removeFromRevisionControl(adminArea.getThisDirName(), true, false); } catch (SVNException svne) { getDebugLog().logFine(SVNLogType.WC, svne); error = svne; } if (error == null || error.getErrorMessage().getErrorCode() == SVNErrorCode.WC_LEFT_LOCAL_MOD) { wcAccess.close(); } if (error != null && error.getErrorMessage().getErrorCode() == SVNErrorCode.WC_LEFT_LOCAL_MOD) { external.getParentFile().mkdirs(); File newLocation = SVNFileUtil.createUniqueFile(external.getParentFile(), external.getName(), ".OLD", false); SVNFileUtil.rename(external, newLocation); } else if (error != null) { throw error; } }
reporter.finishReport(); }, SVNCancellableEditor.newInstance(editor, this, getDebugLog()));
throw e; } catch (SVNException e) { getDebugLog().logFine(SVNLogType.WC, e);
throw e; } catch (SVNException e) { getDebugLog().logFine(SVNLogType.WC, e);
private void deleteExternal(SVNExternalInfo external) throws SVNException { SVNWCAccess wcAccess = createWCAccess(); SVNAdminArea adminArea = wcAccess.open(external.getFile(), true, SVNWCAccess.INFINITE_DEPTH); SVNException error = null; try { adminArea.removeFromRevisionControl(adminArea.getThisDirName(), true, false); } catch (SVNException svne) { getDebugLog().info(svne); error = svne; } if (error == null || error.getErrorMessage().getErrorCode() == SVNErrorCode.WC_LEFT_LOCAL_MOD) { wcAccess.close(); } if (error != null && error.getErrorMessage().getErrorCode() == SVNErrorCode.WC_LEFT_LOCAL_MOD) { external.getFile().getParentFile().mkdirs(); File newLocation = SVNFileUtil.createUniqueFile(external.getFile().getParentFile(), external.getFile().getName(), ".OLD"); SVNFileUtil.rename(external.getFile(), newLocation); } else if (error != null) { throw error; } }
throw e; } catch (SVNException e) { getDebugLog().info(e);
adminInfo = wcAccess.openAnchor(file, true, recursive ? SVNWCAccess.INFINITE_DEPTH : 0); SVNAdminArea anchorArea = adminInfo.getAnchor(); final SVNReporter reporter = new SVNReporter(adminInfo, file, true, recursive, getDebugLog()); SVNURL reposRoot = repos.getRepositoryRoot(true); wcAccess.setRepositoryRoot(file, reposRoot); repos.update(revNumber, target, recursive, reporter, SVNCancellableEditor.newInstance(editor, this, getDebugLog()));
reporter.finishReport(); }, SVNCancellableEditor.newInstance(editor, this, getDebugLog()));
reporter.finishReport(); }, SVNCancellableEditor.newInstance(editor, this, getDebugLog()));
try { SVNAdminAreaInfo info = wcAccess.openAnchor(file, true, SVNWCAccess.INFINITE_DEPTH); final SVNReporter reporter = new SVNReporter(info, file, true, recursive, getDebugLog()); SVNAdminArea anchorArea = info.getAnchor(); SVNEntry entry = anchorArea.getEntry(anchorArea.getThisDirName(), false); repository.update(url, revNumber, target, recursive, reporter, SVNCancellableEditor.newInstance(editor, this, getDebugLog()));
boolean serverSupportsDepth = repos.hasCapability(SVNCapability.DEPTH); final SVNReporter reporter = new SVNReporter(adminInfo, path, true, !serverSupportsDepth, depth, isUpdateLocksOnDemand(), false, !depthIsSticky, getDebugLog()); repos.update(revNumber, target, depth, sendCopyFrom, reporter, SVNCancellableEditor.newInstance(filterEditor, this, getDebugLog())); } finally { repos2.closeSession();
getDebugLog().info(th); } finally { setEventPathPrefix(null);
boolean serverSupportsDepth = repos.hasCapability(SVNCapability.DEPTH); final SVNReporter reporter = new SVNReporter(adminInfo, path, true, !serverSupportsDepth, depth, isUpdateLocksOnDemand(), false, !depthIsSticky, getDebugLog()); repos.update(revNumber, target, depth, sendCopyFrom, reporter, SVNCancellableEditor.newInstance(filterEditor, this, getDebugLog())); } finally { if (repos2[0] != null) {
final SVNReporter reporter = new SVNReporter(info, path, true, false, depth, false, false, !depthIsSticky, getDebugLog()); SVNAdminArea anchorArea = info.getAnchor(); SVNEntry entry = anchorArea.getVersionedEntry(anchorArea.getThisDirName(), false); repository.update(url, revNumber, target, depth, reporter, SVNCancellableEditor.newInstance(filterEditor, this, getDebugLog()));
final SVNReporter reporter = new SVNReporter(info, path, true, false, depth, false, false, !depthIsSticky, getDebugLog()); SVNAdminArea anchorArea = info.getAnchor(); SVNEntry entry = anchorArea.getVersionedEntry(anchorArea.getThisDirName(), false); repository.update(url, revNumber, target, depth, reporter, SVNCancellableEditor.newInstance(filterEditor, this, getDebugLog()));