Class SvnRemoteAnnotate
java.lang.Object
org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner<V,T>
org.tmatesoft.svn.core.internal.wc2.SvnRemoteOperationRunner<SvnAnnotateItem,SvnAnnotate>
org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteAnnotate
- All Implemented Interfaces:
ISVNCanceller,ISVNAnnotateHandler,ISVNEventHandler,ISvnOperationRunner<SvnAnnotateItem,SvnAnnotate>
public class SvnRemoteAnnotate
extends SvnRemoteOperationRunner<SvnAnnotateItem,SvnAnnotate>
implements ISVNAnnotateHandler
-
Field Summary
Fields inherited from interface org.tmatesoft.svn.core.ISVNCanceller
NULLFields inherited from interface org.tmatesoft.svn.core.wc.ISVNEventHandler
UNKNOWN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidHandles the EOF met after the document contents.voidhandleLine(java.util.Date date, long revision, java.lang.String author, java.lang.String line) voidhandleLine(java.util.Date date, long revision, java.lang.String author, java.lang.String line, java.util.Date mergedDate, long mergedRevision, java.lang.String mergedAuthor, java.lang.String mergedPath, int lineNumber) Handles per line annotation information - that is information about who last committed (changed) this line, the revision and timestamp when it was last committed.booleanhandleRevision(java.util.Date date, long revision, java.lang.String author, java.io.File contents) Handles file information for a next revision.booleanisApplicable(SvnAnnotate operation, SvnWcGeneration wcGeneration) Returns whether this runner is applicable for the operation on concrete working copy generation (1.7 or 1.6)protected SvnAnnotateItemrun()Methods inherited from class org.tmatesoft.svn.core.internal.wc2.SvnRemoteOperationRunner
getRepositoryAccess, getWcGeneration, isRevisionLocalToWc, resetMethods inherited from class org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner
checkCancelled, getOperation, getWcContext, handleEvent, handleEvent, run, setOperation, setWcContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SvnRemoteAnnotate
public SvnRemoteAnnotate()
-
-
Method Details
-
isApplicable
public boolean isApplicable(SvnAnnotate operation, SvnWcGeneration wcGeneration) throws SVNException Description copied from interface:ISvnOperationRunnerReturns whether this runner is applicable for the operation on concrete working copy generation (1.7 or 1.6)- Specified by:
isApplicablein interfaceISvnOperationRunner<SvnAnnotateItem,SvnAnnotate> - Overrides:
isApplicablein classSvnRemoteOperationRunner<SvnAnnotateItem,SvnAnnotate> - Parameters:
operation- operation that needs runnerwcGeneration- working copy generation- Returns:
trueif the runner is applicable, otherwisefalse- Throws:
SVNException
-
run
- Specified by:
runin classSvnOperationRunner<SvnAnnotateItem,SvnAnnotate> - Throws:
SVNException
-
handleLine
public void handleLine(java.util.Date date, long revision, java.lang.String author, java.lang.String line, java.util.Date mergedDate, long mergedRevision, java.lang.String mergedAuthor, java.lang.String mergedPath, int lineNumber) throws SVNException Description copied from interface:ISVNAnnotateHandlerHandles per line annotation information - that is information about who last committed (changed) this line, the revision and timestamp when it was last committed. ParametersmergedDate,mergedRevision,mergedAuthorandmergedPathwill be set only if the corresponding methoddoAnnotateofSVNLogClientwas called withincludeMergedRevisionsset to true. Otherwise they are irrelevant. Note: if there is no blame information for this line,revisionwill be invalid andauthoranddatewill be null.- Specified by:
handleLinein interfaceISVNAnnotateHandler- Parameters:
date- the time moment when changes tolinewere committed to the repositoryrevision- the revision the changes were committed toauthor- the person who did those changesline- a text line of the target file (on whichdoAnnotate()was invoked)mergedDate- date when merge changes occurredmergedRevision- revision in which merge changes occurredmergedAuthor- author of mergemergedPath- absolute repository path of the merged filelineNumber- number of the file line for which this information is annotated- Throws:
SVNException
-
handleRevision
public boolean handleRevision(java.util.Date date, long revision, java.lang.String author, java.io.File contents) throws SVNException Description copied from interface:ISVNAnnotateHandlerHandles file information for a next revision. If this method returns true then file contents will be annotated forrevisionas well.- Specified by:
handleRevisionin interfaceISVNAnnotateHandler- Parameters:
date- the time moment when changes tolinewere committed to the repositoryrevision- the revision the changes were committed toauthor- the person who did those changescontents- temporary file with contents. This file shouldn't be used as persistent reference as it will be overwritten after this method exits and eventually deleted.- Returns:
- true to annotate the file for
revision - Throws:
SVNException
-
handleLine
public void handleLine(java.util.Date date, long revision, java.lang.String author, java.lang.String line) throws SVNException - Specified by:
handleLinein interfaceISVNAnnotateHandler- Throws:
SVNException
-
handleEOF
public void handleEOF()Description copied from interface:ISVNAnnotateHandlerHandles the EOF met after the document contents.- Specified by:
handleEOFin interfaceISVNAnnotateHandler
-