|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gate.versioning.cmdline.AbstractRepository gate.versioning.cmdline.SvnRepository
public class SvnRepository
SVN repository implementation.
The public API of this class is documented on the
Repository
interface.
Repository
Field Summary |
---|
Fields inherited from class gate.versioning.cmdline.AbstractRepository |
---|
commandOutput, nl, root, stderrOutput, stdoutOutput, workingDir |
Constructor Summary | |
---|---|
SvnRepository()
|
Method Summary | |
---|---|
boolean |
add(String fileName)
Add to the repository. |
boolean |
checkin(String fileName,
String message)
Commit changes. |
boolean |
create(String dirName)
Create a new repository filetree (i.e. not a new object but a new database/filesystem on disk). |
boolean |
delete(String fileName)
Delete from the repository. |
String |
diff(String fileName)
Get the difference with the repository version. |
boolean |
exists(String moduleName)
Check for the existence of a module (i.e. top-level directory). |
String |
getCommandName()
Returns "svn". |
protected List |
getPostCommand(String fileName,
boolean noRoot)
Get the post-subcommand elements of the command (e.g. root). |
protected List |
getPreCommand()
Get the pre-subcommand elements of the command (e.g. |
boolean |
importDir(String dirName)
Import a directory. |
boolean |
isModified(String fileName)
Use the repository's status command to figure out if the file has been locally modified. |
boolean |
isOutOfDate(String fileName)
Use the repository's status command to figure out if the file is out-of-date. |
boolean |
isUnknown(String fileName)
Use the repository's status command to figure out if the file is unknown. |
void |
setRoot(String root)
The root / URL of the repository. |
String |
status(String fileName)
Status. |
boolean |
update(String fileName)
Update. |
Methods inherited from class gate.versioning.cmdline.AbstractRepository |
---|
buildCommandArray, buildCommandArray, checkin, checkout, getCommandOutput, getCommandStderr, getCommandStdout, getRepository, getRoot, init, runCommand, runCommand, setWorkingDir |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SvnRepository()
Method Detail |
---|
public String getCommandName()
getCommandName
in interface Repository
getCommandName
in class AbstractRepository
protected List getPreCommand()
getPreCommand
in class AbstractRepository
protected List getPostCommand(String fileName, boolean noRoot)
getPostCommand
in class AbstractRepository
public void setRoot(String root)
setRoot
in interface Repository
setRoot
in class AbstractRepository
public boolean checkin(String fileName, String message)
checkin
in interface Repository
checkin
in class AbstractRepository
fileName
- the file or directory to work on (should be relative
to the repository's working directory, and use "/" as a path separator).message
- a commit message.
public boolean update(String fileName)
update
in interface Repository
update
in class AbstractRepository
fileName
- the file or directory to work on (should be relative
to the repository's working directory, and use "/" as a path separator).
public String status(String fileName)
status
in interface Repository
status
in class AbstractRepository
fileName
- the file or directory to work on (should be relative
to the repository's working directory, and use "/" as a path separator).
public boolean delete(String fileName)
delete
in interface Repository
delete
in class AbstractRepository
fileName
- the file or directory to work on (should be relative
to the repository's working directory, and use "/" as a path separator).
public boolean add(String fileName)
add
in interface Repository
add
in class AbstractRepository
fileName
- the file or directory to work on (should be relative
to the repository's working directory, and use "/" as a path separator).
public String diff(String fileName)
diff
in interface Repository
diff
in class AbstractRepository
fileName
- the file or directory to work on (should be relative
to the repository's working directory, and use "/" as a path separator).
public boolean create(String dirName)
AbstractRepository.init()
(so that we
can create repositories without having an existing one).
dirName
- the directory to work on, which will be created
(should be an absolute path).
public boolean importDir(String dirName) throws gate.util.GateException
dirName
- the directory to import (this must exist).
gate.util.GateException
- when the directory doesn't exist.public boolean isModified(String fileName)
fileName
- the file or directory to work on (should be relative
to the repository's working directory, and use "/" as a path separator).
public boolean isOutOfDate(String fileName)
fileName
- the file or directory to work on (should be relative
to the repository's working directory, and use "/" as a path separator).
public boolean isUnknown(String fileName)
fileName
- the file or directory to work on (should be relative
to the repository's working directory, and use "/" as a path separator).
public boolean exists(String moduleName)
moduleName
- directory to look for.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |