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.
|
cmd
datePattern, 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, getDateFormat
getDatePattern, getDirectoryName, getType, isRemote, setDatePattern, setDirectoryName, setRemote, setType, setWorking
public 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
Repository
file
- 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
Repository
java.io.IOException
public boolean fileHasAnnotation(java.io.File file)
Repository
true
if annotation is supportedpublic static boolean isInP4Depot(java.io.File file)
file
- The file to testpublic boolean isWorking()
RepositoryInfo
isWorking
in class RepositoryInfo