|
||||||||||
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.PerforceRepository
public class PerforceRepository
Access to a Perforce repository
Constructor Summary | |
---|---|
PerforceRepository()
|
Method Summary | |
---|---|
Annotation |
annotate(java.io.File file,
java.lang.String rev)
Annotate the specified revision of a file. |
boolean |
fileHasAnnotation(java.io.File file)
Checks whether this parser can annotate files. |
static boolean |
isInP4Depot(java.io.File file)
Check if a given file is in the depot |
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) |
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 PerforceRepository()
Method Detail |
---|
public Annotation annotate(java.io.File file, java.lang.String rev) throws java.io.IOException
Repository
file
- the file to annotaterev
- 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 static boolean isInP4Depot(java.io.File file)
file
- The file to test
public boolean isWorking()
Repository
isWorking
in class Repository
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |