|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensolaris.opengrok.history.RepositoryInfo
org.opensolaris.opengrok.history.Repository
org.opensolaris.opengrok.history.SubversionRepository
public class SubversionRepository
Access to a Subversion repository. TODO The current implementation does not support nested repositories as described in http://svnbook.red-bean.com/en/1.0/ch07s03.html
Field Summary | |
---|---|
protected java.lang.String |
reposPath
|
Fields inherited from class org.opensolaris.opengrok.history.RepositoryInfo |
---|
datePattern, directoryName, remote, type, working |
Constructor Summary | |
---|---|
SubversionRepository()
|
Method Summary | |
---|---|
Annotation |
annotate(java.io.File file,
java.lang.String revision)
Annotate the specified revision of a file. |
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 |
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 |
setDirectoryName(java.lang.String directoryName)
Specify the name of the root directory for this repository. |
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, setRemote, setType, setWorking |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String reposPath
Constructor Detail |
---|
public SubversionRepository()
Method Detail |
---|
public void setDirectoryName(java.lang.String directoryName)
RepositoryInfo
setDirectoryName
in class RepositoryInfo
directoryName
- the new name of the root directorypublic 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 Annotation annotate(java.io.File file, java.lang.String revision) throws java.io.IOException
Repository
file
- the file to annotaterevision
- revision of the file
Annotation
object
java.io.IOException
- if an error occurspublic boolean fileHasAnnotation(java.io.File file)
Repository
true
if annotation is supportedpublic boolean fileHasHistory(java.io.File file)
public void update() throws java.io.IOException
Repository
java.io.IOException
public boolean isWorking()
RepositoryInfo
isWorking
in class RepositoryInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |