org.opensolaris.opengrok.history
Class CVSRepository

java.lang.Object
  extended by org.opensolaris.opengrok.history.RepositoryInfo
      extended by org.opensolaris.opengrok.history.Repository
          extended by org.opensolaris.opengrok.history.RCSRepository
              extended by org.opensolaris.opengrok.history.CVSRepository
All Implemented Interfaces:
java.io.Serializable

public class CVSRepository
extends RCSRepository

Access to a local CVS repository.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.opensolaris.opengrok.history.RepositoryInfo
datePattern, directoryName, remote, type, working
 
Constructor Summary
CVSRepository()
           
 
Method Summary
 boolean fileHasAnnotation(java.io.File file)
          Checks whether this parser can annotate files.
 boolean fileHasHistory(java.io.File file)
           
 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.
 boolean isRepositoryFor(java.io.File file)
          Check if this it the right repository type for the given file.
 boolean isWorking()
          Returns true if this repository is usable in this context (for SCM systems that use external binaries, the binary must be availabe etc)
protected  Annotation parseAnnotation(java.io.Reader input, java.lang.String fileName)
           
 void update()
          Update the content in this repository by pulling the changes from the upstream repository..
 
Methods inherited from class org.opensolaris.opengrok.history.Repository
getDateFormat
 
Methods inherited from class org.opensolaris.opengrok.history.RepositoryInfo
getDatePattern, getDirectoryName, getType, isRemote, setDatePattern, setDirectoryName, setRemote, setType, setWorking
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CVSRepository

public CVSRepository()
Method Detail

isWorking

public boolean isWorking()
Description copied from class: RepositoryInfo
Returns true if this repository is usable in this context (for SCM systems that use external binaries, the binary must be availabe etc)

Overrides:
isWorking in class RepositoryInfo
Returns:
true if the HistoryGuru may use the repository

isRepositoryFor

public boolean isRepositoryFor(java.io.File file)
Description copied from class: Repository
Check if this it the right repository type for the given file.

Parameters:
file - File to check if this is a repository for.
Returns:
true if this is the correct repository for this file/directory.

update

public void update()
            throws java.io.IOException
Description copied from class: Repository
Update the content in this repository by pulling the changes from the upstream repository..

Throws:
java.io.IOException

getHistoryGet

public java.io.InputStream getHistoryGet(java.lang.String parent,
                                         java.lang.String basename,
                                         java.lang.String rev)
Description copied from class: Repository
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.

fileHasAnnotation

public boolean fileHasAnnotation(java.io.File file)
Description copied from class: Repository
Checks whether this parser can annotate files.

Returns:
true if annotation is supported

fileHasHistory

public boolean fileHasHistory(java.io.File file)

parseAnnotation

protected Annotation parseAnnotation(java.io.Reader input,
                                     java.lang.String fileName)
                              throws java.io.IOException
Throws:
java.io.IOException