org.opensolaris.opengrok.history
Class DirectoryHistoryParser
java.lang.Object
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!)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectoryHistoryParser
public DirectoryHistoryParser()
parse
public History parse(java.io.File file,
Repository repos)
throws HistoryException
- Parse the history log for the given file.
- Parameters:
file
- the filerepos
- 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()