Class SvnOldAnnotate

All Implemented Interfaces:
ISVNCanceller, ISVNAnnotateHandler, ISVNEventHandler, ISvnOperationRunner<SvnAnnotateItem,SvnAnnotate>

public class SvnOldAnnotate extends SvnOldRunner<SvnAnnotateItem,SvnAnnotate> implements ISVNAnnotateHandler
  • Field Summary

    Fields inherited from interface org.tmatesoft.svn.core.ISVNCanceller

    NULL

    Fields inherited from interface org.tmatesoft.svn.core.wc.ISVNEventHandler

    UNKNOWN
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Handles the EOF met after the document contents.
    void
    handleLine(java.util.Date date, long revision, java.lang.String author, java.lang.String line)
     
    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)
    Handles per line annotation information - that is information about who last committed (changed) this line, the revision and timestamp when it was last committed.
    boolean
    handleRevision(java.util.Date date, long revision, java.lang.String author, java.io.File contents)
    Handles file information for a next revision.
    protected SvnAnnotateItem
    run()
     

    Methods inherited from class org.tmatesoft.svn.core.internal.wc2.old.SvnOldRunner

    getWcGeneration

    Methods inherited from class org.tmatesoft.svn.core.internal.wc2.SvnLocalOperationRunner

    getFirstTarget, isApplicable, sleepForTimestamp

    Methods inherited from class org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner

    checkCancelled, getOperation, getWcContext, handleEvent, handleEvent, reset, run, setOperation, setWcContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SvnOldAnnotate

      public SvnOldAnnotate()
  • Method Details

    • run

      protected SvnAnnotateItem run() throws SVNException
      Specified by:
      run in class SvnOperationRunner<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: ISVNAnnotateHandler
      Handles per line annotation information - that is information about who last committed (changed) this line, the revision and timestamp when it was last committed.

      Parameters mergedDate, mergedRevision, mergedAuthor and mergedPath will be set only if the corresponding method doAnnotate of SVNLogClient was called with includeMergedRevisions set to true. Otherwise they are irrelevant.

      Note: if there is no blame information for this line, revision will be invalid and author and date will be null.

      Specified by:
      handleLine in interface ISVNAnnotateHandler
      Parameters:
      date - the time moment when changes to line were committed to the repository
      revision - the revision the changes were committed to
      author - the person who did those changes
      line - a text line of the target file (on which doAnnotate() was invoked)
      mergedDate - date when merge changes occurred
      mergedRevision - revision in which merge changes occurred
      mergedAuthor - author of merge
      mergedPath - absolute repository path of the merged file
      lineNumber - 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: ISVNAnnotateHandler
      Handles file information for a next revision. If this method returns true then file contents will be annotated for revision as well.
      Specified by:
      handleRevision in interface ISVNAnnotateHandler
      Parameters:
      date - the time moment when changes to line were committed to the repository
      revision - the revision the changes were committed to
      author - the person who did those changes
      contents - 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:
      handleLine in interface ISVNAnnotateHandler
      Throws:
      SVNException
    • handleEOF

      public void handleEOF()
      Description copied from interface: ISVNAnnotateHandler
      Handles the EOF met after the document contents.
      Specified by:
      handleEOF in interface ISVNAnnotateHandler