|
||||||||||
| 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.PerforceRepository
public class PerforceRepository
Access to a Perforce repository
| Field Summary |
|---|
| Fields inherited from class org.opensolaris.opengrok.history.RepositoryInfo |
|---|
datePattern, directoryName, remote, type, working |
| 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) |
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 |
|---|
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 occurs
public void update()
throws java.io.IOException
Repository
java.io.IOExceptionpublic 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()
RepositoryInfo
isWorking in class RepositoryInfo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||