private void doNotification(File localAbspath, SVNNodeKind kind, SVNEventAction action, SVNURL url, SVNURL previousURL) throws SVNException { if (myWCContext.getEventHandler() != null) { SVNEvent event = new SVNEvent(localAbspath, kind, null, -1, null, null, null, null, action, null, null, null, null, null, null); event.setURL(url); event.setPreviousURL(previousURL); myWCContext.getEventHandler().handleEvent(event, 0); } }
public static SVNCommitInfo commit(Collection tmpFiles, Map commitItems, SVNURL url, ISVNEditor commitEditor, ISVNEventHandler eventHandler) throws SVNException { String repositoryRoot = url.getPath(); SVNCommitter committer = new SVNCommitter(commitItems, repositoryRoot, tmpFiles); SVNCommitUtil.driveCommitEditor(committer, commitItems.keySet(), commitEditor, -1); committer.sendTextDeltas(commitEditor); SVNEvent event = SVNEventFactory.createSVNEvent(null, SVNNodeKind.UNKNOWN, null, SVNRepository.INVALID_REVISION, SVNEventAction.COMMIT_FINALIZING, SVNEventAction.COMMIT_FINALIZING, null, null); event.setURL(url); if (eventHandler != null) { eventHandler.handleEvent(event, -1); } return commitEditor.closeEdit(); }
if (eventHandler != null) { final SVNEvent event = SVNEventFactory.createSVNEvent(new File("."), SVNNodeKind.UNKNOWN, null, SVNRepository.INVALID_REVISION, SVNEventAction.URL_REDIRECT, SVNEventAction.URL_REDIRECT, null, null); event.setURL(correctedUrl[0]); eventHandler.handleEvent(event, -1);
null, null); event.setPreviousRevision(entry.getRevision()); event.setURL(entry.getSVNURL()); myWCAccess.handleEvent(event); return;
null, null); event.setPreviousRevision(entry.getRevision()); event.setURL(entry.getSVNURL()); myWCAccess.handleEvent(event); return;
null, null); event.setPreviousRevision(entry.getRevision()); event.setURL(entry.getSVNURL()); myWCAccess.handleEvent(event); return;
SVNCommitUtil.driveCommitEditor(deleter, condencedPaths, commitEditor, -1); SVNEvent event = SVNEventFactory.createSVNEvent(null, SVNNodeKind.UNKNOWN, null, SVNRepository.INVALID_REVISION, SVNEventAction.COMMIT_FINALIZING, SVNEventAction.COMMIT_FINALIZING, null, null); event.setURL(rootURL); handleEvent(event); info = commitEditor.closeEdit();
private SVNFileInfo openFile(String path, SVNDirectoryInfo parent) throws SVNException { checkIfPathIsUnderRoot(path); SVNFileInfo info = createFileInfo(parent, path, false); SVNAdminArea adminArea = parent.getAdminArea(); SVNEntry entry = adminArea.getEntry(info.Name, true); if (entry == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNVERSIONED_RESOURCE, "File ''{0}'' in directory ''{1}'' is not a versioned resource", new Object[] {info.Name, adminArea.getRoot()}); SVNErrorManager.error(err, SVNLogType.WC); } boolean hasTextConflicts = adminArea.hasTextConflict(info.Name); boolean hasPropConflicts = adminArea.hasPropConflict(info.Name); if (hasTextConflicts || hasPropConflicts) { info.isSkipped = true; Collection skippedPaths = getSkippedPaths(); File file = new File(myAdminInfo.getAnchor().getRoot(), path); skippedPaths.add(file); SVNEvent event = SVNEventFactory.createSVNEvent(adminArea.getFile(info.Name), SVNNodeKind.FILE, null, myTargetRevision, hasTextConflicts ? SVNStatusType.CONFLICTED : SVNStatusType.UNKNOWN, hasPropConflicts ? SVNStatusType.CONFLICTED : SVNStatusType.UNKNOWN, SVNStatusType.LOCK_INAPPLICABLE, SVNEventAction.SKIP, SVNEventAction.UPDATE_UPDATE, null, null); event.setPreviousRevision(entry.getRevision()); event.setURL(entry.getSVNURL()); myWCAccess.handleEvent(event); } return info; }
private SVNFileInfo openFile(String path, SVNDirectoryInfo parent) throws SVNException { checkIfPathIsUnderRoot(path); SVNFileInfo info = createFileInfo(parent, path, false); SVNAdminArea adminArea = parent.getAdminArea(); SVNEntry entry = adminArea.getEntry(info.Name, true); if (entry == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNVERSIONED_RESOURCE, "File ''{0}'' in directory ''{1}'' is not a versioned resource", new Object[] {info.Name, adminArea.getRoot()}); SVNErrorManager.error(err, SVNLogType.WC); } boolean hasTextConflicts = adminArea.hasTextConflict(info.Name); boolean hasPropConflicts = adminArea.hasPropConflict(info.Name); if (hasTextConflicts || hasPropConflicts) { info.isSkipped = true; Collection skippedPaths = getSkippedPaths(); File file = new File(myAdminInfo.getAnchor().getRoot(), path); skippedPaths.add(file); SVNEvent event = SVNEventFactory.createSVNEvent(adminArea.getFile(info.Name), SVNNodeKind.FILE, null, myTargetRevision, hasTextConflicts ? SVNStatusType.CONFLICTED : SVNStatusType.UNKNOWN, hasPropConflicts ? SVNStatusType.CONFLICTED : SVNStatusType.UNKNOWN, SVNStatusType.LOCK_INAPPLICABLE, SVNEventAction.SKIP, SVNEventAction.UPDATE_UPDATE, null, null); event.setPreviousRevision(entry.getRevision()); event.setURL(entry.getSVNURL()); myWCAccess.handleEvent(event); } return info; }
private SVNFileInfo openFile(String path, SVNDirectoryInfo parent) throws SVNException { checkIfPathIsUnderRoot(path); SVNFileInfo info = createFileInfo(parent, path, false); SVNAdminArea adminArea = parent.getAdminArea(); SVNEntry entry = adminArea.getEntry(info.Name, true); if (entry == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNVERSIONED_RESOURCE, "File ''{0}'' in directory ''{1}'' is not a versioned resource", new Object[] {info.Name, adminArea.getRoot()}); SVNErrorManager.error(err, SVNLogType.WC); } boolean hasTextConflicts = adminArea.hasTextConflict(info.Name); boolean hasPropConflicts = adminArea.hasPropConflict(info.Name); if (hasTextConflicts || hasPropConflicts) { info.isSkipped = true; Collection skippedPaths = getSkippedPaths(); File file = new File(myAdminInfo.getAnchor().getRoot(), path); skippedPaths.add(file); SVNEvent event = SVNEventFactory.createSVNEvent(adminArea.getFile(info.Name), SVNNodeKind.FILE, null, myTargetRevision, hasTextConflicts ? SVNStatusType.CONFLICTED : SVNStatusType.UNKNOWN, hasPropConflicts ? SVNStatusType.CONFLICTED : SVNStatusType.UNKNOWN, SVNStatusType.LOCK_INAPPLICABLE, SVNEventAction.SKIP, SVNEventAction.UPDATE_UPDATE, null, null); event.setPreviousRevision(entry.getRevision()); event.setURL(entry.getSVNURL()); myWCAccess.handleEvent(event); } return info; }
SVNEvent event = SVNEventFactory.createSVNEvent(file, SVNNodeKind.NONE, null, myCurrentRevision, SVNEventAction.ANNOTATE, null, null, null, props, null); if (file == null) { event.setURL(SVNURL.parseURIEncoded(myPath));
event.setPreviousRevision(myCurrentDirectory.myPreviousRevision); if (myCurrentDirectory.URL != null) { event.setURL(SVNURL.parseURIEncoded(myCurrentDirectory.URL));
event.setPreviousRevision(myCurrentDirectory.myPreviousRevision); if (myCurrentDirectory.URL != null) { event.setURL(SVNURL.parseURIEncoded(myCurrentDirectory.URL));
event.setPreviousRevision(myCurrentDirectory.myPreviousRevision); if (myCurrentDirectory.URL != null) { event.setURL(SVNURL.parseURIEncoded(myCurrentDirectory.URL));
SVNEvent event = SVNEventFactory.createSVNEvent(file, SVNNodeKind.NONE, null, myCurrentRevision, SVNEventAction.ANNOTATE, null, null, null); if (file == null) { event.setURL(SVNURL.parseURIDecoded(myPath));
SVNEvent event = SVNEventFactory.createSVNEvent(file, SVNNodeKind.NONE, null, myCurrentRevision, SVNEventAction.ANNOTATE, null, null, null); if (file == null) { event.setURL(SVNURL.parseURIDecoded(myPath));
event.setURL(myCurrentDirectory.URL != null ? SVNURL.parseURIEncoded(myCurrentDirectory.URL) : null); myWCAccess.handleEvent(event);
SVNStatusType.LOCK_INAPPLICABLE, eventAction, SVNEventAction.UPDATE_UPDATE, null, null); event.setPreviousRevision(entry.getRevision()); event.setURL(entry.getSVNURL()); myWCAccess.handleEvent(event);
SVNStatusType.LOCK_INAPPLICABLE, eventAction, SVNEventAction.UPDATE_UPDATE, null, null); event.setPreviousRevision(entry.getRevision()); event.setURL(entry.getSVNURL()); myWCAccess.handleEvent(event);
hasPropConflicts ? SVNStatusType.CONFLICTED : SVNStatusType.UNKNOWN, SVNStatusType.LOCK_INAPPLICABLE, eventAction, SVNEventAction.UPDATE_UPDATE, null, null); event.setPreviousRevision(entry.getRevision()); event.setURL(entry.getSVNURL()); myWCAccess.handleEvent(event);