public class PerforceRepository extends Repository
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CMD_FALLBACK
The command to use to access the repository if none was given explicitly
|
static java.lang.String |
CMD_PROPERTY_KEY
The property name used to obtain the client command for this repository.
|
cmddatePattern, directoryName, remote, type, working| Constructor and Description |
|---|
PerforceRepository() |
| Modifier and Type | Method and Description |
|---|---|
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..
|
ensureCommand, getDateFormatgetDatePattern, getDirectoryName, getType, isRemote, setDatePattern, setDirectoryName, setRemote, setType, setWorkingpublic static final java.lang.String CMD_PROPERTY_KEY
public static final java.lang.String CMD_FALLBACK
public Annotation annotate(java.io.File file, java.lang.String rev) throws java.io.IOException
Repositoryfile - the file to annotaterev - revision of the file. Either null or a none-empty
string.Annotation objectjava.io.IOException - if an error occurspublic void update()
throws java.io.IOException
Repositoryjava.io.IOExceptionpublic boolean fileHasAnnotation(java.io.File file)
Repositorytrue if annotation is supportedpublic static boolean isInP4Depot(java.io.File file)
file - The file to testpublic boolean isWorking()
RepositoryInfoisWorking in class RepositoryInfo