org.opensolaris.opengrok.history
Class TeamwareRepository

java.lang.Object
  extended by org.opensolaris.opengrok.history.ExternalRepository
      extended by org.opensolaris.opengrok.history.TeamwareRepository

public class TeamwareRepository
extends ExternalRepository


Constructor Summary
TeamwareRepository()
          Creates a new instance of MercurialRepository
TeamwareRepository(java.lang.String directory)
          Creates a new instance of MercurialRepository
 
Method Summary
 Annotation annotate(java.io.File file, java.lang.String revision)
          Annotate the specified file/revision.
 boolean fileHasHistory(java.io.File file)
           
 java.lang.String getCommand()
          Get the name of the SCCS command that should be used
 java.lang.Class<? extends org.opensolaris.opengrok.history.HistoryParser> getDirectoryHistoryParser()
           
 java.io.InputStream getHistoryGet(java.lang.String parent, java.lang.String basename, java.lang.String rev)
          Get an input stream that I may use to read a speciffic version of a named file.
 java.lang.Class<? extends org.opensolaris.opengrok.history.HistoryParser> getHistoryParser()
          Get a parser capable of getting history log elements from this repository.
 boolean isCacheable()
          Check whether the parsed history should be cached.
 boolean isVerbose()
          Use verbose log messages, or just the summary
 void setCommand(java.lang.String command)
          Set the name of the SCCS command to use
 void setVerbose(boolean verbose)
          Specify if verbose log messages or just the summary should be used
 boolean supportsAnnotation()
          Checks whether this parser can annotate files.
 void update()
          Update the content in this repository by pulling the changes from the upstream repository..
 
Methods inherited from class org.opensolaris.opengrok.history.ExternalRepository
getDirectoryName, setDirectoryName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TeamwareRepository

public TeamwareRepository()
Creates a new instance of MercurialRepository


TeamwareRepository

public TeamwareRepository(java.lang.String directory)
Creates a new instance of MercurialRepository

Parameters:
directory - The directory containing the .hg-subdirectory
Method Detail

setCommand

public void setCommand(java.lang.String command)
Set the name of the SCCS command to use

Parameters:
command - the name of the command (sccs)

getCommand

public java.lang.String getCommand()
Get the name of the SCCS command that should be used

Returns:
the name of the sccs command in use

isVerbose

public boolean isVerbose()
Use verbose log messages, or just the summary

Returns:
true if verbose log messages are used for this repository

setVerbose

public void setVerbose(boolean verbose)
Specify if verbose log messages or just the summary should be used

Parameters:
verbose - set to true if verbose messages should be used

getHistoryGet

public java.io.InputStream getHistoryGet(java.lang.String parent,
                                         java.lang.String basename,
                                         java.lang.String rev)
Description copied from class: ExternalRepository
Get an input stream that I may use to read a speciffic version of a named file.

Parameters:
parent - the name of the directory containing the file
basename - the name of the file to get
rev - the revision to get
Returns:
An input stream containing the correct revision.

getHistoryParser

public java.lang.Class<? extends org.opensolaris.opengrok.history.HistoryParser> getHistoryParser()
Description copied from class: ExternalRepository
Get a parser capable of getting history log elements from this repository.

Returns:
a specialized parser for this kind of repository

getDirectoryHistoryParser

public java.lang.Class<? extends org.opensolaris.opengrok.history.HistoryParser> getDirectoryHistoryParser()

annotate

public Annotation annotate(java.io.File file,
                           java.lang.String revision)
                    throws java.lang.Exception
Annotate the specified file/revision.

Parameters:
file - file to annotate
revision - revision to annotate
Returns:
file annotation
Throws:
java.lang.Exception - if an error occurs

supportsAnnotation

public boolean supportsAnnotation()
Description copied from class: ExternalRepository
Checks whether this parser can annotate files.

Returns:
true if annotation is supported

isCacheable

public boolean isCacheable()
Description copied from class: ExternalRepository
Check whether the parsed history should be cached.

Returns:
true if the history should be cached

update

public void update()
            throws java.lang.Exception
Description copied from class: ExternalRepository
Update the content in this repository by pulling the changes from the upstream repository..

Throws:
java.lang.Exception - if an error occurs.

fileHasHistory

public boolean fileHasHistory(java.io.File file)