private void handleExternalItemChange(SVNWCAccess access, String targetDir, ExternalDiff externalDiff) throws SVNException { try { handleExternalChange(access, targetDir, externalDiff); } catch (SVNException svne) { File target = new File(externalDiff.owner, targetDir); SVNEvent event = SVNEventFactory.createSVNEvent(target, SVNNodeKind.UNKNOWN, null, SVNRepository.INVALID_REVISION, SVNEventAction.FAILED_EXTERNAL, SVNEventAction.UPDATE_EXTERNAL, svne.getErrorMessage(), null); dispatchEvent(event); } } /**
private void handleExternalItemChange(SVNWCAccess access, String targetDir, ExternalDiff externalDiff) throws SVNException { try { handleExternalChange(access, targetDir, externalDiff); } catch (SVNException svne) { File target = new File(externalDiff.owner, targetDir); SVNEvent event = SVNEventFactory.createSVNEvent(target, SVNNodeKind.UNKNOWN, null, SVNRepository.INVALID_REVISION, SVNEventAction.FAILED_EXTERNAL, SVNEventAction.UPDATE_EXTERNAL, svne.getErrorMessage(), null).setExternalInfo(externalDiff.oldExternal,externalDiff.newExternal); dispatchEvent(event); } } /**
if (svne.getErrorMessage().getErrorCode() == SVNErrorCode.WC_NOT_DIRECTORY) { SVNEvent skipEvent = SVNEventFactory.createSVNEvent(path, SVNNodeKind.UNKNOWN, null, SVNRepository.INVALID_REVISION, SVNEventAction.SKIP, SVNEventAction.UPDATE_COMPLETED, null, null); dispatchEvent(skipEvent); revisions.add(new Long(-1)); continue;
SVNRepository repository = createRepository(url, null, null, pegRevision, revision, revNum); long exportedRevision = doRemoteExport(repository, revNum[0], dstPath, eolStyle, overwrite, depth); dispatchEvent(SVNEventFactory.createSVNEvent(null, SVNNodeKind.NONE, null, exportedRevision, SVNEventAction.UPDATE_COMPLETED, null, null, null)); return exportedRevision;
if (svne.getErrorMessage().getErrorCode() == SVNErrorCode.WC_NOT_DIRECTORY) { SVNEvent skipEvent = SVNEventFactory.createSVNEvent(path, SVNNodeKind.UNKNOWN, null, SVNRepository.INVALID_REVISION, SVNEventAction.SKIP, SVNEventAction.UPDATE_COMPLETED, null, null); dispatchEvent(skipEvent); revisions.add(new Long(-1)); continue;
SVNRepository repository = createRepository(url, null, null, pegRevision, revision, revNum); long exportedRevision = doRemoteExport(repository, revNum[0], dstPath, eolStyle, overwrite, depth); dispatchEvent(SVNEventFactory.createSVNEvent(null, SVNNodeKind.NONE, null, exportedRevision, SVNEventAction.UPDATE_COMPLETED, null, null, null)); return exportedRevision;
String relativePath = targetDir.equals(dstPath) ? "" : targetDir.getAbsolutePath().substring(dstPath.getAbsolutePath().length() + 1); relativePath = relativePath.replace(File.separatorChar, '/'); dispatchEvent(SVNEventFactory.createUpdateExternalEvent((SVNAdminAreaInfo)null, relativePath)); try { setEventPathPrefix(relativePath); throw e; dispatchEvent(new SVNEvent(e.getErrorMessage())); } finally { setEventPathPrefix(null); SVNFileUtil.setExecutable(dstPath, true); dispatchEvent(SVNEventFactory.createExportAddedEvent(dstPath.getParentFile(), dstPath, SVNNodeKind.FILE));
long revisionNumber = getRevisionNumber(revision, repository, null); long exportedRevision = doRemoteExport(repository, revisionNumber, dstPath, eolStyle, force, recursive); dispatchEvent(SVNEventFactory.createUpdateCompletedEvent((SVNAdminAreaInfo)null, exportedRevision)); return exportedRevision;
dispatchEvent(SVNEventFactory.createUpdateCompletedEvent((SVNAdminAreaInfo)null, exportedRevision)); return exportedRevision;
dispatchEvent(SVNEventFactory.createSVNEvent(null, SVNNodeKind.NONE, null, exportedRevision, SVNEventAction.UPDATE_COMPLETED, null, null, null)); return exportedRevision;
dispatchEvent(SVNEventFactory.createSVNEvent(null, SVNNodeKind.NONE, null, exportedRevision, SVNEventAction.UPDATE_COMPLETED, null, null, null)); return exportedRevision;
if (external.getOldURL() == null) { external.getFile().mkdirs(); dispatchEvent(SVNEventFactory.createUpdateExternalEvent(info, "")); doCheckout(external.getNewURL(), external.getFile(), revision, revision, true); } else if (external.getNewURL() == null) { deleteExternal(external); external.getFile().mkdirs(); dispatchEvent(SVNEventFactory.createUpdateExternalEvent(info, "")); doCheckout(external.getNewURL(), external.getFile(), revision, revision, true); } else { dispatchEvent(SVNEventFactory.createUpdateExternalEvent(info, "")); doUpdate(external.getFile(), revision, true); continue; deleteExternal(external); external.getFile().mkdirs(); dispatchEvent(SVNEventFactory.createUpdateExternalEvent(info, "")); doCheckout(external.getNewURL(), external.getFile(), revision, revision, true); continue; dispatchEvent(SVNEventFactory.createUpdateExternalEvent(info, "")); doCheckout(external.getNewURL(), external.getFile(), revision, revision, true); dispatchEvent(new SVNEvent(th.getErrorMessage())); getDebugLog().info(th); } finally {
SVNFileUtil.setExecutable(dstPath, true); dispatchEvent(SVNEventFactory.createSVNEvent(dstPath, SVNNodeKind.FILE, null, SVNRepository.INVALID_REVISION, SVNEventAction.UPDATE_ADD, null, null, null)); } else { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_ILLEGAL_URL, "URL ''{0}'' doesn't exist", repository.getLocation());
handleExternals(adminInfo); dispatchEvent(SVNEventFactory.createUpdateCompletedEvent(adminInfo, editor.getTargetRevision()));
SVNFileUtil.setExecutable(dstPath, true); dispatchEvent(SVNEventFactory.createSVNEvent(dstPath, SVNNodeKind.FILE, null, SVNRepository.INVALID_REVISION, SVNEventAction.UPDATE_ADD, null, null, null)); } else { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_ILLEGAL_URL, "URL ''{0}'' doesn't exist", repository.getLocation());
dispatchEvent(SVNEventFactory.createUpdateCompletedEvent(info, editor.getTargetRevision()));
adminInfo.getOldExternals(), adminInfo.getNewExternals(), adminInfo.getDepths(), url, reposRoot, depth, false, true); dispatchEvent(SVNEventFactory.createSVNEvent(adminInfo.getTarget().getRoot(), SVNNodeKind.NONE, null, targetRevision, SVNEventAction.UPDATE_COMPLETED, null, null, null, reporter.getReportedFilesCount(), reporter.getTotalFilesCount()));
adminInfo.getOldExternals(), adminInfo.getNewExternals(), adminInfo.getDepths(), url, reposRoot, depth, false, true); dispatchEvent(SVNEventFactory.createSVNEvent(adminInfo.getTarget().getRoot(), SVNNodeKind.NONE, null, targetRevision, SVNEventAction.UPDATE_COMPLETED, null, null, null, reporter.getReportedFilesCount(), reporter.getTotalFilesCount()));
dispatchEvent(SVNEventFactory.createSVNEvent(info.getTarget().getRoot(), SVNNodeKind.NONE, null, targetRevision, SVNEventAction.UPDATE_COMPLETED, null, null, null, reporter.getReportedFilesCount(), reporter.getTotalFilesCount())); return targetRevision;
dispatchEvent(SVNEventFactory.createSVNEvent(info.getTarget().getRoot(), SVNNodeKind.NONE, null, targetRevision, SVNEventAction.UPDATE_COMPLETED, null, null, null, reporter.getReportedFilesCount(), reporter.getTotalFilesCount())); return targetRevision;