|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensolaris.opengrok.history.Repository
org.opensolaris.opengrok.history.SCCSRepository
public class SCCSRepository
This class gives access to repositories built on top of SCCS (including TeamWare).
Constructor Summary | |
---|---|
SCCSRepository()
|
Method Summary | |
---|---|
Annotation |
annotate(java.io.File file,
java.lang.String revision)
Annotate the specified file/revision. |
boolean |
fileHasAnnotation(java.io.File file)
Checks whether this parser can annotate files. |
boolean |
fileHasHistory(java.io.File file)
|
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 |
isWorking()
Returns true if this repository is usable in this context (for SCM systems that use external binaries, the binary must be availabe etc) |
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 |
---|
getDirectoryName, setDirectoryName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SCCSRepository()
Method Detail |
---|
public java.io.InputStream getHistoryGet(java.lang.String parent, java.lang.String basename, java.lang.String rev)
Repository
parent
- the name of the directory containing the filebasename
- the name of the file to getrev
- the revision to get
public java.lang.Class<? extends org.opensolaris.opengrok.history.HistoryParser> getHistoryParser()
Repository
public java.lang.Class<? extends org.opensolaris.opengrok.history.HistoryParser> getDirectoryHistoryParser()
public Annotation annotate(java.io.File file, java.lang.String revision) throws java.io.IOException
file
- file to annotaterevision
- revision to annotate
java.io.IOException
- if an error occurspublic boolean fileHasAnnotation(java.io.File file)
Repository
true
if annotation is supportedpublic boolean isCacheable()
Repository
true
if the history should be cachedpublic void update()
Repository
public boolean fileHasHistory(java.io.File file)
public boolean isWorking()
Repository
isWorking
in class Repository
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |