org.opensolaris.opengrok.history
Class PerforceHistoryParser

java.lang.Object
  extended by org.opensolaris.opengrok.history.PerforceHistoryParser

public class PerforceHistoryParser
extends java.lang.Object

Parse source history for a Perforce Repository


Constructor Summary
PerforceHistoryParser()
           
 
Method Summary
static java.util.List<HistoryEntry> getRevisions(java.io.File file, java.lang.String rev)
           
 History parse(java.io.File file, Repository repos)
          Parse the history for the specified file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerforceHistoryParser

public PerforceHistoryParser()
Method Detail

getRevisions

public static java.util.List<HistoryEntry> getRevisions(java.io.File file,
                                                        java.lang.String rev)
                                                 throws java.io.IOException
Throws:
java.io.IOException

parse

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

Parameters:
file - the file to parse history for
repos - Pointer to the PerforceRepository
Returns:
object representing the file's history
Throws:
HistoryException - if a problem occurs while executing p4 command