create
public void create(String path,
boolean disableFsyncCommit,
boolean keepLog,
String configPath,
String fstype)
throws ClientException
create a subversion repository.
path
- the path where the repository will been
created.disableFsyncCommit
- disable to fsync at the commit (BDB).keepLog
- keep the log files (BDB).configPath
- optional path for user configuration files.fstype
- the type of the filesystem (BDB or FSFS)
deltify
public void deltify(String path,
Revision start,
Revision end)
throws ClientException
deltify the revisions in the repository
path
- the path to the repositorystart
- start revisionend
- end revision
dispose
public void dispose()
release the native peer (should not depend on finalize)
dump
public void dump(String path,
OutputInterface dataOut,
OutputInterface errorOut,
Revision start,
Revision end,
boolean incremental)
throws ClientException
dump the data in a repository
path
- the path to the repositorydataOut
- the data will be outputed hereerrorOut
- the messages will be outputed herestart
- the first revision to be dumpedend
- the last revision to be dumpedincremental
- the dump will be incremantal
finalize
protected void finalize()
release the native peer (should use dispose instead)
getVersion
public Version getVersion()
- Version information about the underlying native libraries.
hotcopy
public void hotcopy(String path,
String targetPath,
boolean cleanLogs)
throws ClientException
make a hot copy of the repository
path
- the path to the source repositorytargetPath
- the path to the target repositorycleanLogs
- clean the unused log files in the source
repository
listDBLogs
public void listDBLogs(String path,
SVNAdmin.MessageReceiver receiver)
throws ClientException
list all logfiles (BDB) in use or not)
path
- the path to the repositoryreceiver
- interface to receive the logfile names
listUnusedDBLogs
public void listUnusedDBLogs(String path,
SVNAdmin.MessageReceiver receiver)
throws ClientException
list unused logfiles
path
- the path to the repositoryreceiver
- interface to receive the logfile names
load
public void load(String path,
InputInterface dataInput,
OutputInterface messageOutput,
boolean ignoreUUID,
boolean forceUUID,
String relativePath)
throws ClientException
load the data of a dump into a repository,
path
- the path to the repositorydataInput
- the data input sourcemessageOutput
- the target for processing messagesignoreUUID
- ignore any UUID found in the input streamforceUUID
- set the repository UUID to any found in the
streamrelativePath
- the directory in the repository, where the data
in put optional.
lslocks
public Lock[] lslocks(String path)
throws ClientException
list all locks in the repository
path
- the path to the repository
lstxns
public void lstxns(String path,
SVNAdmin.MessageReceiver receiver)
throws ClientException
list all open transactions in a repository
path
- the path to the repositoryreceiver
- receives one transaction name per call
recover
public long recover(String path)
throws ClientException
recover the berkeley db of a repository, returns youngest revision
path
- the path to the repository
rmlocks
public void rmlocks(String path,
String[] locks)
throws ClientException
remove multiple locks from the repository
path
- the path to the repositorylocks
- the name of the locked items
rmtxns
public void rmtxns(String path,
String[] transactions)
throws ClientException
remove open transaction in a repository
path
- the path to the repositorytransactions
- the transactions to be removed
setLog
public void setLog(String path,
Revision rev,
String message,
boolean bypassHooks)
throws ClientException
set the log message of a revision
path
- the path to the repositoryrev
- the revision to be changedmessage
- the message to be setbypassHooks
- if to bypass all repository hooks
verify
public void verify(String path,
OutputInterface messageOut,
Revision start,
Revision end)
throws ClientException
verify the repository
path
- the path to the repositorymessageOut
- the receiver of all messagesstart
- the first revisionend
- the last revision