org.opensolaris.opengrok.history
Class DirectoryHistoryParser

java.lang.Object
  extended by org.opensolaris.opengrok.history.DirectoryHistoryParser
Direct Known Subclasses:
RazorDirectoryHistoryParser

public class DirectoryHistoryParser
extends java.lang.Object

HistoryParser that use the Lucene index to generate the history log. (Please note that SCM systems that supports changesets consisting of multiple files should implement their own HistoryParser!)


Constructor Summary
DirectoryHistoryParser()
           
 
Method Summary
 Annotation annotate(java.io.File file, java.lang.String revision, Repository repository)
           
 boolean isCacheable()
           
 History parse(java.io.File file, Repository repos)
          Parse the history log for the given file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryHistoryParser

public DirectoryHistoryParser()
Method Detail

parse

public History parse(java.io.File file,
                     Repository repos)
              throws HistoryException
Parse the history log for the given file.

Parameters:
file - the file
repos - the external repository to fetch the history from (could be null if no external repository is used)
Returns:
the history of the file
Throws:
HistoryException

annotate

public Annotation annotate(java.io.File file,
                           java.lang.String revision,
                           Repository repository)

isCacheable

public boolean isCacheable()