logger.debug("At revision " + event.getRevision());
getClientNotifyInformationStatus(event.getPropertiesStatus()), getClientNotifyInformationLockStatus(event.getLockStatus()), event.getRevision(), event.getChangelistName(), getRevisionRange(event.getMergeRange()),
out.println("At revision " + event.getRevision()); return; } else if (action == SVNEventAction.ADD){
out.println("At revision " + event.getRevision()); return; } else if (action == SVNEventAction.ADD){
out.println("At revision " + event.getRevision()); out.println(); return;
@Override public void handleEvent(SVNEvent event, double progress) throws SVNException { SVNEventAction action = event.getAction(); if (action == SVNEventAction.UPDATE_EXTERNAL || action == SVNEventAction.UPDATE_COMPLETED) { File file = event.getFile(); SVNExternalDetails details = externalDetails.remove(file); if (details != null) { String path; try { path = getLocalPath(getRelativePath(file)); } catch (IOException e) { throw new SVNException(new RemotableSVNErrorMessage(SVNErrorCode.FS_GENERAL, e)); } out.println(Messages.SubversionUpdateEventHandler_FetchExternal(details.getUrl(), event.getRevision(), file)); externals.add(new External(modulePath + '/' + path, details.getUrl(), details.getRevision())); } } else if (action == SVNEventAction.FAILED_EXTERNAL) { File file = event.getFile(); SVNExternalDetails details = externalDetails.get(file); if (details != null) { out.println(Messages.SubversionUpdateEventHandler_FetchExternal(details.getUrl(), event.getRevision(), file) + " failed!"); } if (cancelProcessOnExternalsFailed) { throw new SVNException(new RemotableSVNErrorMessage(SVNErrorCode.CL_ERROR_PROCESSING_EXTERNALS, SVNErrorCode.CL_ERROR_PROCESSING_EXTERNALS.getDescription() + ": <" + file.getName() + ">")); } } super.handleEvent(event, progress); }
buffer.append("\nPerforming status on external item at '" + path + "'\n"); } else if (event.getAction() == SVNEventAction.STATUS_COMPLETED) { if (SVNRevision.isValidRevisionNumber(event.getRevision())) { String revStr = Long.toString(event.getRevision()); buffer.append("Status against revision: " + SVNFormatUtil.formatString(revStr, 6, false) + "\n"); long rev = event.getRevision(); if (rev >= 0) { if (myIsExport) {
buffer.append("\nPerforming status on external item at '" + path + "'\n"); } else if (event.getAction() == SVNEventAction.STATUS_COMPLETED) { if (SVNRevision.isValidRevisionNumber(event.getRevision())) { String revStr = Long.toString(event.getRevision()); buffer.append("Status against revision: " + SVNFormatUtil.formatString(revStr, 6, false) + "\n"); long rev = event.getRevision(); if (rev >= 0) { if (myIsExport) {
public void handleEvent(SVNEvent event, double progress) { String path = event.getFile() == null ? event.getPath() : event.getFile().getAbsolutePath(); if (path != null) { path = path.replace(File.separatorChar, '/'); } if(myNotify != null && event.getErrorMessage() == null){ myNotify.onNotify( path, JavaHLObjectFactory.getNotifyActionValue(event.getAction()), JavaHLObjectFactory.getNodeKind(event.getNodeKind()), event.getMimeType(), JavaHLObjectFactory.getStatusValue(event.getContentsStatus()), JavaHLObjectFactory.getStatusValue(event.getPropertiesStatus()), event.getRevision() ); } if(myNotify2 != null){ NotifyInformation info = JavaHLObjectFactory.createNotifyInformation(event, path); myNotify2.onNotify(info); } }
public void handleEvent(SVNEvent event, double progress) { if (event.getAction() == SVNEventAction.UPGRADE) { return; } String path = null; if (event.getFile() != null) { path = event.getFile().getAbsolutePath(); if (path != null) { path = path.replace(File.separatorChar, '/'); } } if (path == null) { path = ""; } if (myNotify != null && event.getErrorMessage() == null) { myNotify.onNotify( path, JavaHLObjectFactory.getNotifyActionValue(event.getAction()), JavaHLObjectFactory.getNodeKind(event.getNodeKind()), event.getMimeType(), JavaHLObjectFactory.getStatusValue(event.getContentsStatus()), JavaHLObjectFactory.getStatusValue(event.getPropertiesStatus()), event.getRevision() ); } if (myNotify2 != null) { NotifyInformation info = JavaHLObjectFactory.createNotifyInformation(event, path); myNotify2.onNotify(info); } }
public void handleEvent(SVNEvent event, double progress) { if (event.getAction() == SVNEventAction.UPGRADE) { return; } String path = null; if (event.getFile() != null) { path = event.getFile().getAbsolutePath(); if (path != null) { path = path.replace(File.separatorChar, '/'); } } if (path == null) { path = ""; } if (myNotify != null && event.getErrorMessage() == null) { myNotify.onNotify( path, JavaHLObjectFactory.getNotifyActionValue(event.getAction()), JavaHLObjectFactory.getNodeKind(event.getNodeKind()), event.getMimeType(), JavaHLObjectFactory.getStatusValue(event.getContentsStatus()), JavaHLObjectFactory.getStatusValue(event.getPropertiesStatus()), event.getRevision() ); } if (myNotify2 != null) { NotifyInformation info = JavaHLObjectFactory.createNotifyInformation(event, path); myNotify2.onNotify(info); } }
JavaHLObjectFactory.getStatusValue(event.getContentsStatus()), JavaHLObjectFactory.getStatusValue(event.getPropertiesStatus()), event.getRevision() );
public static NotifyInformation createNotifyInformation(SVNEvent event, String path) { final int actionId = getNotifyActionValue(event.getAction()); if (actionId == -1) { return null; } // include full error message. String errMsg = null; if (event.getErrorMessage() != null) { errMsg = event.getErrorMessage().getFullMessage(); } // TODO 16 return new NotifyInformation( path, actionId, getNodeKind(event.getNodeKind()), event.getMimeType(), createLock(event.getLock()), errMsg, getStatusValue(event.getContentsStatus()), getStatusValue(event.getPropertiesStatus()), getLockStatusValue(event.getLockStatus()), event.getRevision(), event.getChangelistName(), createRevisionRange(event.getMergeRange()), "" ); }