Package org.apache.subversion.javahl
Interface ISVNRepos
- All Known Implementing Classes:
SVNRepos
public interface ISVNRepos
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceISVNRepos.MessageReceiverinterface to receive the messages -
Field Summary
-
Method Summary
Modifier and Type Method Description voidcancelOperation()cancel the active operationvoidcreate(File path, boolean disableFsyncCommit, boolean keepLog, File configPath, String fstype)create a subversion repository.voiddeltify(File path, Revision start, Revision end)deltify the revisions in the repositoryvoiddispose()release the native peer (should not depend on finalize)voiddump(File path, OutputStream dataOut, Revision start, Revision end, boolean incremental, boolean useDeltas, ReposNotifyCallback callback)dump the data in a repositoryvoidfreeze(ReposFreezeAction action, File... paths)Take an exclusive lock on each of the listed repositories to prevent commits; then, while holding all the locks, call the action.invoke().VersiongetVersion()voidhotcopy(File path, File targetPath, boolean cleanLogs)voidhotcopy(File path, File targetPath, boolean cleanLogs, boolean incremental)voidhotcopy(File path, File targetPath, boolean cleanLogs, boolean incremental, ReposNotifyCallback callback)make a hot copy of the repositoryvoidlistDBLogs(File path, ISVNRepos.MessageReceiver receiver)list all logfiles (BDB) in use or not)voidlistUnusedDBLogs(File path, ISVNRepos.MessageReceiver receiver)list unused logfilesvoidload(File path, InputStream dataInput, boolean ignoreUUID, boolean forceUUID, boolean usePreCommitHook, boolean usePostCommitHook, String relativePath, ReposNotifyCallback callback)load the data of a dump into a repositoryvoidload(File path, InputStream dataInput, Revision start, Revision end, boolean ignoreUUID, boolean forceUUID, boolean usePreCommitHook, boolean usePostCommitHook, boolean validateProps, boolean ignoreDates, boolean normalizeProps, String relativePath, ReposNotifyCallback callback)load the data of a dump into a repositoryvoidload(File path, InputStream dataInput, Revision start, Revision end, boolean ignoreUUID, boolean forceUUID, boolean usePreCommitHook, boolean usePostCommitHook, boolean validateProps, boolean ignoreDates, String relativePath, ReposNotifyCallback callback)load the data of a dump into a repositoryvoidload(File path, InputStream dataInput, Revision start, Revision end, boolean ignoreUUID, boolean forceUUID, boolean usePreCommitHook, boolean usePostCommitHook, String relativePath, ReposNotifyCallback callback)Load the data of a dump into a repository.Set<Lock>lslocks(File path, Depth depth)list all locks in the repositoryvoidlstxns(File path, ISVNRepos.MessageReceiver receiver)list all open transactions in a repositoryvoidpack(File path, ReposNotifyCallback callback)pack the repositorylongrecover(File path, ReposNotifyCallback callback)recover the filesystem backend of a repositoryvoidrmlocks(File path, String[] locks)remove multiple locks from the repositoryvoidrmtxns(File path, String[] transactions)remove open transaction in a repositoryvoidsetRevProp(File path, Revision rev, String propName, String propValue, boolean usePreRevPropChangeHook, boolean usePostRevPropChangeHook)Change the value of the revision propertypropNametopropValue.voidupgrade(File path, ReposNotifyCallback callback)upgrade the repository formatvoidverify(File path, Revision start, Revision end, boolean checkNormalization, boolean metadataOnly, ReposNotifyCallback notifyCallback, ReposVerifyCallback verifyCallback)Verify the repository atpathbetween revisionsstartandend.voidverify(File path, Revision start, Revision end, ReposNotifyCallback callback)Verify the repository atpathbetween revisionsstartandend.
-
Field Details
-
BDB
Filesystem in a Berkeley DB- See Also:
- Constant Field Values
-
FSFS
Filesystem in the filesystem- See Also:
- Constant Field Values
-
-
Method Details
-
dispose
void dispose()release the native peer (should not depend on finalize) -
getVersion
Version getVersion()- Returns:
- Version information about the underlying native libraries.
-
create
void create(File path, boolean disableFsyncCommit, boolean keepLog, File configPath, String fstype) throws ClientExceptioncreate a subversion repository.- Parameters:
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)- Throws:
ClientException- throw in case of problem
-
deltify
deltify the revisions in the repository- Parameters:
path- the path to the repositorystart- start revisionend- end revision- Throws:
ClientException- throw in case of problem
-
dump
void dump(File path, OutputStream dataOut, Revision start, Revision end, boolean incremental, boolean useDeltas, ReposNotifyCallback callback) throws ClientExceptiondump the data in a repository- Parameters:
path- the path to the repositorydataOut- the data will be outputed herestart- the first revision to be dumpedend- the last revision to be dumpedincremental- the dump will be incremantaluseDeltas- the dump will contain deltas between nodescallback- the callback to receive notifications- Throws:
ClientException- throw in case of problem
-
hotcopy
void hotcopy(File path, File targetPath, boolean cleanLogs, boolean incremental, ReposNotifyCallback callback) throws ClientExceptionmake a hot copy of the repository- Parameters:
path- the path to the source repositorytargetPath- the path to the target repositorycleanLogs- clean the unused log files in the source repositorycallback- the callback to receive notifications- Throws:
ClientException- throw in case of problem- Since:
- 1.9
-
hotcopy
void hotcopy(File path, File targetPath, boolean cleanLogs, boolean incremental) throws ClientException- Throws:
ClientException
-
hotcopy
- Throws:
ClientException
-
listDBLogs
list all logfiles (BDB) in use or not)- Parameters:
path- the path to the repositoryreceiver- interface to receive the logfile names- Throws:
ClientException- throw in case of problem
-
listUnusedDBLogs
list unused logfiles- Parameters:
path- the path to the repositoryreceiver- interface to receive the logfile names- Throws:
ClientException- throw in case of problem
-
load
void load(File path, InputStream dataInput, Revision start, Revision end, boolean ignoreUUID, boolean forceUUID, boolean usePreCommitHook, boolean usePostCommitHook, boolean validateProps, boolean ignoreDates, boolean normalizeProps, String relativePath, ReposNotifyCallback callback) throws ClientExceptionload the data of a dump into a repository- Parameters:
path- the path to the repositorydataInput- the data input sourcestart- the first revision to loadend- the last revision to loadignoreUUID- ignore any UUID found in the input streamforceUUID- set the repository UUID to any found in the streamusePreCommitHook- use the pre-commit hook when processing commitsusePostCommitHook- use the post-commit hook when processing commitsvalidateProps- validate "svn:" revision and node propertiesignoreDates- ignore revision datestamps in the dump streamnormalizeProps- attempt to normalize invalid Subversion revision and node propertiesrelativePath- the directory in the repository, where the data in put optional.callback- the target for processing messages- Throws:
ClientException- throw in case of problem- Since:
- 1.10
-
load
void load(File path, InputStream dataInput, Revision start, Revision end, boolean ignoreUUID, boolean forceUUID, boolean usePreCommitHook, boolean usePostCommitHook, boolean validateProps, boolean ignoreDates, String relativePath, ReposNotifyCallback callback) throws ClientExceptionload the data of a dump into a repository- Parameters:
path- the path to the repositorydataInput- the data input sourcestart- the first revision to loadend- the last revision to loadignoreUUID- ignore any UUID found in the input streamforceUUID- set the repository UUID to any found in the streamusePreCommitHook- use the pre-commit hook when processing commitsusePostCommitHook- use the post-commit hook when processing commitsvalidateProps- validate "svn:" revision and node propertiesignoreDates- ignore revision datestamps in the dump streamrelativePath- the directory in the repository, where the data in put optional.callback- the target for processing messages- Throws:
ClientException- throw in case of problem- Since:
- 1.9
-
load
void load(File path, InputStream dataInput, Revision start, Revision end, boolean ignoreUUID, boolean forceUUID, boolean usePreCommitHook, boolean usePostCommitHook, String relativePath, ReposNotifyCallback callback) throws ClientExceptionLoad the data of a dump into a repository. SetsvalidatePropsandignoreDatestofalse.- Parameters:
path- the path to the repositorydataInput- the data input sourcestart- the first revision to loadend- the last revision to loadignoreUUID- ignore any UUID found in the input streamforceUUID- set the repository UUID to any found in the streamusePreCommitHook- use the pre-commit hook when processing commitsusePostCommitHook- use the post-commit hook when processing commitsrelativePath- the directory in the repository, where the data in put optional.callback- the target for processing messages- Throws:
ClientException- throw in case of problem- Since:
- 1.8
-
load
void load(File path, InputStream dataInput, boolean ignoreUUID, boolean forceUUID, boolean usePreCommitHook, boolean usePostCommitHook, String relativePath, ReposNotifyCallback callback) throws ClientExceptionload the data of a dump into a repository- Parameters:
path- the path to the repositorydataInput- the data input sourceignoreUUID- ignore any UUID found in the input streamforceUUID- set the repository UUID to any found in the streamusePreCommitHook- use the pre-commit hook when processing commitsusePostCommitHook- use the post-commit hook when processing commitsrelativePath- the directory in the repository, where the data in put optional.callback- the target for processing messages- Throws:
ClientException- throw in case of problem
-
lstxns
list all open transactions in a repository- Parameters:
path- the path to the repositoryreceiver- receives one transaction name per call- Throws:
ClientException- throw in case of problem
-
recover
recover the filesystem backend of a repository- Parameters:
path- the path to the repository- Returns:
- youngest revision
- Throws:
ClientException- throw in case of problem
-
freeze
Take an exclusive lock on each of the listed repositories to prevent commits; then, while holding all the locks, call the action.invoke(). The repositories may or may not be readable by Subversion while frozen, depending on implementation details of the repository's filesystem backend. Repositories are locked in the listed order.- Parameters:
action- describes the action to performpaths- the set of repository paths- Throws:
ClientException- Since:
- 1.8
-
rmtxns
remove open transaction in a repository- Parameters:
path- the path to the repositorytransactions- the transactions to be removed- Throws:
ClientException- throw in case of problem
-
setRevProp
void setRevProp(File path, Revision rev, String propName, String propValue, boolean usePreRevPropChangeHook, boolean usePostRevPropChangeHook) throws SubversionExceptionChange the value of the revision propertypropNametopropValue. By default, does not run pre-/post-revprop-change hook scripts.- Parameters:
path- The path to the repository.rev- The revision for which to change a property value.propName- The name of the property to change.propValue- The new value to set for the property.usePreRevPropChangeHook- Whether to run the pre-revprop-change hook script.usePostRevPropChangeHook- Whether to run the post-revprop-change hook script.- Throws:
SubversionException- If a problem occurs.
-
verify
void verify(File path, Revision start, Revision end, boolean checkNormalization, boolean metadataOnly, ReposNotifyCallback notifyCallback, ReposVerifyCallback verifyCallback) throws ClientExceptionVerify the repository atpathbetween revisionsstartandend.If
verifyCallbackisnull, verification will stop at the first encountered error. Otherwise, the verification process may continue, depending on the value returned from the invocation ofverifyCallback.- Parameters:
path- the path to the repositorystart- the first revisionend- the last revisioncheckNormalization- report directory entry and mergeinfo name collisions caused by denormalized Unicode representationsmetadataOnly- check only metadata, not file contentsnotifyCallback- the callback to receive notificationsverifyCallback- the callback to receive verification status- Throws:
ClientException- If an error occurred.- Since:
- 1.9
-
verify
void verify(File path, Revision start, Revision end, ReposNotifyCallback callback) throws ClientExceptionVerify the repository atpathbetween revisionsstartandend.Note: Behaves like the 1.9 version with
checkNormailzationandmetadataOnlyset tofalseandverifyCallbackset tonull.- Parameters:
path- the path to the repositorystart- the first revisionend- the last revisioncallback- the callback to receive notifications- Throws:
ClientException- If an error occurred.
-
lslocks
list all locks in the repository- Parameters:
path- the path to the repositorydepth- the depth to recurse- Throws:
ClientException- throw in case of problem
-
rmlocks
remove multiple locks from the repository- Parameters:
path- the path to the repositorylocks- the name of the locked items- Throws:
ClientException- throw in case of problem
-
upgrade
upgrade the repository format- Parameters:
path- the path to the repositorycallback- for notification- Throws:
ClientException- throw in case of problem
-
pack
pack the repository- Parameters:
path- the path to the repositorycallback- for notification- Throws:
ClientException- throw in case of problem
-
cancelOperation
cancel the active operation- Throws:
ClientException
-