Class SVNAdminClient
- All Implemented Interfaces:
ISVNCanceller,ISVNEventHandler
Repository administrative methods are analogues of the corresponding commands of the native Subversion 'svnadmin' utility, while repository synchronizing methods are the ones for the 'svnsync' utility.
Here's a list of the SVNAdminClient's methods matched against corresponing commands of the Subversion svnsync and svnadmin command-line utilities:
| SVNKit | Subversion |
| doInitialize() | 'svnsync initialize' |
| doSynchronize() | 'svnsync synchronize' |
| doInfo() | 'svnsync info' |
| doCopyRevisionProperties() | 'svnsync copy-revprops' |
| doDump() | 'svnadmin dump' |
| doListTransactions() | 'svnadmin lstxns' |
| doLoad() | 'svnadmin load' |
| doRemoveTransactions() | 'svnadmin rmtxns' |
| doVerify() | 'svnadmin verify' |
| doPack() | 'svnadmin pack' |
- Since:
- 1.2
- Version:
- 1.3
- Author:
- TMate Software Ltd.
-
Field Summary
Fields inherited from interface org.tmatesoft.svn.core.ISVNCanceller
NULLFields inherited from interface org.tmatesoft.svn.core.wc.ISVNEventHandler
UNKNOWN -
Constructor Summary
ConstructorsConstructorDescriptionSVNAdminClient(ISVNAuthenticationManager authManager, ISVNOptions options) Creates a new admin client.SVNAdminClient(ISVNRepositoryPool repositoryPool, ISVNOptions options) Creates a new admin client. -
Method Summary
Modifier and TypeMethodDescriptionvoiddoCompleteSynchronize(SVNURL fromURL, SVNURL toURL) Completely synchronizes two repositories.voiddoCopyRevisionProperties(SVNURL toURL, long startRevision, long endRevision) Copies revision properties from the source repository starting atstartRevisionand up toendRevisionto corresponding revisions of the destination repository represented bytoURL.doCreateRepository(File path, String uuid, boolean enableRevisionProperties, boolean force) Creates an FSFS-type repository.doCreateRepository(File path, String uuid, boolean enableRevisionProperties, boolean force, boolean pre14Compatible) Creates an FSFS-type repository.doCreateRepository(File path, String uuid, boolean enableRevisionProperties, boolean force, boolean pre14Compatible, boolean pre15Compatible) Creates an FSFS-type repository.doCreateRepository(File path, String uuid, boolean enableRevisionProperties, boolean force, boolean pre14Compatible, boolean pre15Compatible, boolean pre16Compatible) Creates an FSFS-type repository.doCreateRepository(File path, String uuid, boolean enableRevisionProperties, boolean force, boolean pre14Compatible, boolean pre15Compatible, boolean pre16Compatible, boolean pre17Compatible, boolean with17Compatible) doCreateRepository(File path, String uuid, boolean enableRevisionProperties, boolean force, boolean pre14Compatible, boolean pre15Compatible, boolean pre16Compatible, boolean pre17Compatible, boolean with17Compatible, boolean pre110Compatible) voiddoDump(File repositoryRoot, OutputStream dumpStream, SVNRevision startRevision, SVNRevision endRevision, boolean isIncremental, boolean useDeltas) Dumps contents of the repository to the provided output stream in a 'dumpfile' portable format.voiddoFilter(InputStream dumpStream, OutputStream resultDumpStream, boolean exclude, boolean renumberRevisions, boolean dropEmptyRevisions, boolean preserveRevisionProperties, Collection prefixes, boolean skipMissingMergeSources) Filters out nodes with or without the givenprefixesfromdumpStreamtoresultDumpStream.voidMakes a hot copy of a repository located atsrcRepositoryRootto one located atnewRepositoryRoot.Returns information about the synchronization repository located attoURL.voiddoInitialize(SVNURL fromURL, SVNURL toURL) Initializes synchronization between source and target repositories.voiddoListLocks(File repositoryRoot) Walks through the repository tree found underrepositoryRootand reports all found locks via calls to the caller'sISVNAdminEventHandlerhandler implementation.voiddoListTransactions(File repositoryRoot) Lists all uncommitted transactions.voiddoLoad(File repositoryRoot, InputStream dumpStream) Reads the provided dump stream committing new revisions to a repository.voiddoLoad(File repositoryRoot, InputStream dumpStream, boolean usePreCommitHook, boolean usePostCommitHook, SVNUUIDAction uuidAction, String parentDir) Reads the provided dump stream committing new revisions to a repository.voidCompacts a repository into a more efficient storage model.voidRecovers the repository found underrepositoryRoot.voiddoRemoveLocks(File repositoryRoot, String[] paths) Removes locks from the specifiedpathsin the repository found underrepositoryRoot.voiddoRemoveTransactions(File repositoryRoot, String[] transactions) Removes the specified outstanding transactions from a repository.voidResets the repository UUID with the provideduuidfor the repository located atrepositoryRoot.voiddoSynchronize(SVNURL toURL) Synchronizes the repository at the given url.voidUpgrades the repository located atrepositoryRootto the latest supported schema version.voidVerifies the data stored in the repository.voiddoVerify(File repositoryRoot, SVNRevision startRevision, SVNRevision endRevision) Verifies repository contents found underrepositoryRootstarting atstartRevisionand up toendRevision.longgetYoungestRevision(File repositoryRoot) Returns the HEAD revision of the repository located atrepositoryRoot.protected voidhandleNormalizedProperties(int normalizedRevPropsCount, int normalizedNodePropsCount) protected voidhandlePropertesCopied(boolean foundSyncProps, long revision) static SVNPropertiesnormalizeRevisionProperties(SVNProperties revProps) static StringnormalizeString(String string) voidsetEventHandler(ISVNEventHandler handler) Sets an event handler for this object.voidsetReplayHandler(ISVNLogEntryHandler handler) Sets a replication handler that will receive a log entry object per each replayed revision.Methods inherited from class org.tmatesoft.svn.core.wc.admin.SVNAdminBasicClient
checkCancelled, createRepository, dispatchEvent, getDebugLog, getEventDispatcher, getOptions, handleEvent, setDebugLog, setOptions
-
Constructor Details
-
SVNAdminClient
Creates a new admin client.- Parameters:
authManager- an auth manageroptions- an options driver
-
SVNAdminClient
Creates a new admin client.- Parameters:
repositoryPool- a repository pooloptions- an options driver
-
SVNAdminClient
-
-
Method Details
-
setReplayHandler
Sets a replication handler that will receive a log entry object per each replayed revision.Log entries dispatched to the handler may not contain changed paths and committed log message until this features are implemented in future releases.
- Parameters:
handler- a replay handler
-
setEventHandler
Sets an event handler for this object.ISVNAdminEventHandlershould be provided to SVNAdminClent via this method also. But it does not mean that you can have two handler set, only one handler can be used at a time.- Overrides:
setEventHandlerin classSVNAdminBasicClient- Parameters:
handler- an event handler
-
doCreateRepository
public SVNURL doCreateRepository(File path, String uuid, boolean enableRevisionProperties, boolean force) throws SVNException Creates an FSFS-type repository. This implementation usesSVNRepositoryFactory.createLocalRepository(File, String, boolean, boolean)}.If
uuidis null a new uuid will be generated, otherwise the specified will be used.If
enableRevisionPropertiesis true, an empty pre-revprop-change hook will be placed into the repository /hooks subdir. This enables changes to revision properties of the newly created repository.If
forceis true andpathalready exists, deletes that path and creates a repository in its place.- Parameters:
path- a repository root dir pathuuid- a repository uuidenableRevisionProperties- enables/disables changes to revision propertiesforce- forces operation to run- Returns:
- a local URL (file:///) of a newly created repository
- Throws:
SVNException- Since:
- 1.1.0
- See Also:
-
doCreateRepository
public SVNURL doCreateRepository(File path, String uuid, boolean enableRevisionProperties, boolean force, boolean pre14Compatible) throws SVNException Creates an FSFS-type repository. This implementation usesSVNRepositoryFactory.createLocalRepository(File, String, boolean, boolean)}.If
uuidis null a new uuid will be generated, otherwise the specified will be used.If
enableRevisionPropertiesis true, an empty pre-revprop-change hook will be placed into the repository /hooks subdir. This enables changes to revision properties of the newly created repository.If
forceis true andpathalready exists, deletes that path and creates a repository in its place.Set
pre14Compatibleto true if you want a new repository to be compatible with pre-1.4 servers.- Parameters:
path- a repository root dir pathuuid- a repository uuidenableRevisionProperties- enables/disables changes to revision propertiesforce- forces operation to runpre14Compatible- true to create a repository with pre-1.4 format- Returns:
- a local URL (file:///) of a newly created repository
- Throws:
SVNException- Since:
- 1.1.1
-
doCreateRepository
public SVNURL doCreateRepository(File path, String uuid, boolean enableRevisionProperties, boolean force, boolean pre14Compatible, boolean pre15Compatible, boolean pre16Compatible) throws SVNException Creates an FSFS-type repository. This implementation usesSVNRepositoryFactory.createLocalRepository(File, String, boolean, boolean)}.If
uuidis null a new uuid will be generated, otherwise the specified will be used.If
enableRevisionPropertiesis true, an empty pre-revprop-change hook will be placed into the repository /hooks subdir. This enables changes to revision properties of the newly created repository.If
forceis true andpathalready exists, deletes that path and creates a repository in its place.Set
pre14Compatibleto true if you want a new repository to be compatible with pre-1.4 servers,pre15Compatible- with pre-1.5 servers andpre16Compatible- with pre-1.6 servers.There must be only one option (either
pre14Compatibleorpre15Compatibleorpre16Compatible) set to true at a time.- Parameters:
path- a repository root dir pathuuid- a repository uuidenableRevisionProperties- enables/disables changes to revision propertiesforce- forces operation to runpre14Compatible- true to create a repository with pre-1.4 formatpre15Compatible- true to create a repository with pre-1.5 formatpre16Compatible- true to create a repository with pre-1.6 format- Returns:
- a local URL (file:///) of a newly created repository
- Throws:
SVNException- Since:
- 1.3, SVN 1.5.0
-
doCreateRepository
public SVNURL doCreateRepository(File path, String uuid, boolean enableRevisionProperties, boolean force, boolean pre14Compatible, boolean pre15Compatible, boolean pre16Compatible, boolean pre17Compatible, boolean with17Compatible) throws SVNException - Throws:
SVNException
-
doCreateRepository
public SVNURL doCreateRepository(File path, String uuid, boolean enableRevisionProperties, boolean force, boolean pre14Compatible, boolean pre15Compatible, boolean pre16Compatible, boolean pre17Compatible, boolean with17Compatible, boolean pre110Compatible) throws SVNException - Throws:
SVNException
-
doCreateRepository
public SVNURL doCreateRepository(File path, String uuid, boolean enableRevisionProperties, boolean force, boolean pre14Compatible, boolean pre15Compatible) throws SVNException Creates an FSFS-type repository. This implementation usesSVNRepositoryFactory.createLocalRepository(File, String, boolean, boolean)}.If
uuidis null a new uuid will be generated, otherwise the specified will be used.If
enableRevisionPropertiesis true, an empty pre-revprop-change hook will be placed into the repository /hooks subdir. This enables changes to revision properties of the newly created repository.If
forceis true andpathalready exists, deletes that path and creates a repository in its place.Set
pre14Compatibleto true if you want a new repository to be compatible with pre-1.4 servers,pre15Compatible- with pre-1.5 servers.There must be only one option (either
pre14Compatibleorpre15Compatible) set to true at a time.- Parameters:
path- a repository root dir pathuuid- a repository uuidenableRevisionProperties- enables/disables changes to revision propertiesforce- forces operation to runpre14Compatible- true to create a repository with pre-1.4 formatpre15Compatible- true to create a repository with pre-1.5 format- Returns:
- a local URL (file:///) of a newly created repository
- Throws:
SVNException- Since:
- 1.2, SVN 1.5.0
-
doCopyRevisionProperties
public void doCopyRevisionProperties(SVNURL toURL, long startRevision, long endRevision) throws SVNException Copies revision properties from the source repository starting atstartRevisionand up toendRevisionto corresponding revisions of the destination repository represented bytoURL.This method is equivalent to the command 'copy-revprops' of the native Subversion svnsync utility. Note that the destination repository given as
If the caller hastoURLmust be synchronized with a source repository. Please, seedoInitialize(SVNURL, SVNURL)} how to initialize such a synchronization.providedan event handler, the handler will receive anSVNAdminEventwith theSVNAdminEventAction.REVISION_PROPERTIES_COPIEDaction when the properties get copied.- Parameters:
toURL- a url to the destination repository which must be synchronized with another repositorystartRevision- start revisionendRevision- end revision- Throws:
SVNException- in the following cases:-
exception with
SVNErrorCode.IO_ERRORerror code - if any of revisions betweenstartRevisionandendRevisioninclusively was not synchronized yet- Since:
- 1.2.0, new in Subversion 1.5.0
-
doInitialize
Initializes synchronization between source and target repositories.This method is equivalent to the command 'initialize' ('init') of the native Subversion svnsync utility. Initialization places information of a source repository to a destination one (setting special revision properties in revision 0) as well as copies all revision props from revision 0 of the source repository to revision 0 of the destination one.
- Parameters:
fromURL- a source repository urltoURL- a destination repository url- Throws:
SVNException- in the following cases:-
exception with
SVNErrorCode.IO_ERRORerror code - if either the target repository's last revision is different from0, or noSVNRevisionProperty.FROM_URLproperty value found in the target repository exception withSVNErrorCode.RA_PARTIAL_REPLAY_NOT_SUPPORTEDerror code - if the source repository does not support partial replay- Since:
- 1.1, new in Subversion 1.4
-
doInfo
Returns information about the synchronization repository located attoURL.- Parameters:
toURL- destination repository url- Returns:
- synchronization information
- Throws:
SVNException- Since:
- 1.3, SVN 1.6
-
doPack
Compacts a repository into a more efficient storage model. Compacting does not occur if there are no full shards. Also compacting does not work on pre-1.6 repositories.- Parameters:
repositoryRoot- root of the repository to pack- Throws:
SVNException- Since:
- 1.3, SVN 1.6
-
doCompleteSynchronize
Completely synchronizes two repositories.This method initializes the destination repository and then copies all revision changes (including revision properties) from the given source repository to the destination one. First it tries to use synchronization features similar to the native Subversion 'svnsync' capabilities. But if a server does not support
replayfunctionality, SVNKit uses its own repository replication feature (seeSVNRepositoryReplicator})- Parameters:
fromURL- a url of a repository to copy fromtoURL- a destination repository url- Throws:
SVNException- Since:
- 1.1
-
doSynchronize
Synchronizes the repository at the given url.Synchronization means copying revision changes and revision properties from the source repository (that the destination one is synchronized with) to the destination one starting at the last merged revision. This method is equivalent to the command 'synchronize' ('sync') of the native Subversion svnsync utility.
- Parameters:
toURL- a destination repository url- Throws:
SVNException- Since:
- 1.1, new in Subversion 1.4
-
doListLocks
Walks through the repository tree found underrepositoryRootand reports all found locks via calls to the caller'sISVNAdminEventHandlerhandler implementation. On each locked path found this method dispatches anSVNAdminEventAction.LOCK_LISTEDeventto the caller's handler providing thelock information.- Parameters:
repositoryRoot- repository root location- Throws:
SVNException- Since:
- 1.2.0, SVN 1.5.0
-
doRemoveLocks
Removes locks from the specifiedpathsin the repository found underrepositoryRoot. If any path of thepathsis not locked, then aneventwith theSVNAdminEventAction.NOT_LOCKEDaction is dispatched to the caller'sISVNAdminEventHandlerhandler. If, on the contrary, a path is locked, it is unlocked and an event with theSVNAdminEventAction.UNLOCKEDaction is dispatched to the caller's handler providing thelock information. If some error occurs while unlocking, an event with theSVNAdminEventAction.UNLOCK_FAILEDaction is dispatched to the caller's handler providing theerror description.- Parameters:
repositoryRoot- repository root locationpaths- paths to unlock- Throws:
SVNException- Since:
- 1.2.0, SVN 1.5.0
-
doListTransactions
Lists all uncommitted transactions. On each uncommetted transaction found this method fires anSVNAdminEventwith action set toSVNAdminEventAction.TRANSACTION_LISTEDto the registeredISVNAdminEventHandler(if any). To register your ISVNAdminEventHandler pass it tosetEventHandler(ISVNEventHandler). For this operation the following information can be retrieved out ofSVNAdminEvent:- transaction name - use
SVNAdminEvent.getTxnName()to get it - transaction directory - use
SVNAdminEvent.getTxnDir()to get it
- Parameters:
repositoryRoot- a repository root directory path- Throws:
SVNException- Since:
- 1.1.1
- transaction name - use
-
doRemoveTransactions
Removes the specified outstanding transactions from a repository. On each transaction removed this method fires anSVNAdminEventwith action set toSVNAdminEventAction.TRANSACTION_REMOVEDto the registeredISVNAdminEventHandler(if any). To register your ISVNAdminEventHandler pass it tosetEventHandler(ISVNEventHandler). For this operation the following information can be retrieved out ofSVNAdminEvent:- transaction name - use
SVNAdminEvent.getTxnName()to get it - transaction directory - use
SVNAdminEvent.getTxnDir()to get it
- Parameters:
repositoryRoot- a repository root directory pathtransactions- an array with transaction names- Throws:
SVNException- Since:
- 1.1.1
- transaction name - use
-
doVerify
Verifies the data stored in the repository. This method uses the dump implementation (non incremental, beginning with revision 0, ending at the latest one) passing a dummy output stream to it. This allows to check the integrity of the repository data. This is identical todoVerify(repositoryRoot, SVNRevision.create(0), SVNRevision.HEAD).- Parameters:
repositoryRoot- a repository root directory path- Throws:
SVNException- verification failed - a repository may be corrupted- Since:
- 1.1.1
-
doVerify
public void doVerify(File repositoryRoot, SVNRevision startRevision, SVNRevision endRevision) throws SVNException Verifies repository contents found underrepositoryRootstarting atstartRevisionand up toendRevision. This method uses the dump implementation (non incremental) passing a dummy output stream to it. This allows to check the integrity of the repository data. IfstartRevisionisinvalid, it defaults to0. IfendRevisionisinvalid, it defaults to the HEAD revision.- Parameters:
repositoryRoot- a repository root directory pathstartRevision- revision to start verification atendRevision- revision to stop verification at- Throws:
SVNException- verification failed - a repository may be corrupted- Since:
- 1.2.0, SVN 1.5.0
-
doDump
public void doDump(File repositoryRoot, OutputStream dumpStream, SVNRevision startRevision, SVNRevision endRevision, boolean isIncremental, boolean useDeltas) throws SVNException Dumps contents of the repository to the provided output stream in a 'dumpfile' portable format.On each revision dumped this method fires an
SVNAdminEventwith action set toSVNAdminEventAction.REVISION_DUMPEDto the registeredISVNAdminEventHandler(if any). To register your ISVNAdminEventHandler pass it tosetEventHandler(ISVNEventHandler). For this operation the following information can be retrieved out ofSVNAdminEvent:- dumped revision - use
SVNAdminEvent.getRevision()to get it
- Parameters:
repositoryRoot- a repository root directory pathdumpStream- an output stream to write dumped contents tostartRevision- the first revision to start dumping fromendRevision- the last revision to end dumping atisIncremental- if true then the first revision dumped will be a diff against the previous revision; otherwise the first revision is a fulltext.useDeltas- if true deltas will be written instead of fulltexts- Throws:
SVNException- Since:
- 1.1.1
- dumped revision - use
-
doLoad
Reads the provided dump stream committing new revisions to a repository.On each revision loaded this method fires an
SVNAdminEventwith action set toSVNAdminEventAction.REVISION_LOADEDto the registeredISVNAdminEventHandler(if any). To register your ISVNAdminEventHandler pass it tosetEventHandler(ISVNEventHandler). For this operation the following information can be retrieved out ofSVNAdminEvent:- original revision - use
SVNAdminEvent.getOriginalRevision()to get it - new committed revision - use
SVNAdminEvent.getRevision()to get it
A call to this method is equivalent to
doLoad(repositoryRoot, dumpStream, false, false, SVNUUIDAction.DEFAULT, null).- Parameters:
repositoryRoot- the root directory path of the repository where new revisions will be committeddumpStream- stream with dumped contents of a repository- Throws:
SVNException- Since:
- 1.1.1
- See Also:
- original revision - use
-
doLoad
public void doLoad(File repositoryRoot, InputStream dumpStream, boolean usePreCommitHook, boolean usePostCommitHook, SVNUUIDAction uuidAction, String parentDir) throws SVNException Reads the provided dump stream committing new revisions to a repository.On each revision loaded this method fires an
SVNAdminEventwith action set toSVNAdminEventAction.REVISION_LOADEDto the registeredISVNAdminEventHandler(if any). To register your ISVNAdminEventHandler pass it tosetEventHandler(ISVNEventHandler). For this operation the following information can be retrieved out ofSVNAdminEvent:- original revision - use
SVNAdminEvent.getOriginalRevision()to get it - new committed revision - use
SVNAdminEvent.getRevision()to get it
- Parameters:
repositoryRoot- the root directory path of the repository where new revisions will be committeddumpStream- stream with dumped contents of a repositoryusePreCommitHook- if true then calls a pre-commit hook before committingusePostCommitHook- if true then calls a post-commit hook after committinguuidAction- one of the three possible ways to treat uuidsparentDir- if not null then loads at this directory in the repository- Throws:
SVNException- Since:
- 1.1.1
- original revision - use
-
doRecover
Recovers the repository found underrepositoryRoot. This method can recover only FSFS type repositories and is identical to the'svnadmin recover'command. If the caller hasprovidedan event handler, the handler will receive anSVNAdminEventwith theSVNAdminEventAction.RECOVERY_STARTEDaction before the recovery starts.- Parameters:
repositoryRoot- repository root location- Throws:
SVNException- Since:
- 1.2.0, SVN 1.5.0
-
doUpgrade
Upgrades the repository located atrepositoryRootto the latest supported schema version. This method is identical to the'svnadmin upgrade'command. This functionality is provided as a convenience for repository administrators who wish to make use of new Subversion functionality without having to undertake a potentially costly full repository dump and load operation. As such, the upgrade performs only the minimum amount of work needed to accomplish this while still maintaining the integrity of the repository. It does not guarantee the most optimized repository state as a dump and subsequent load would. If the caller hasprovidedan event handler, the handler will receive anSVNAdminEventwith theSVNAdminEventAction.UPGRADEaction before the upgrade starts.- Parameters:
repositoryRoot- repository root location- Throws:
SVNException- Since:
- 1.2.0, SVN 1.5.0
-
doSetUUID
Resets the repository UUID with the provideduuidfor the repository located atrepositoryRoot. This method is identical to the'svnadmin setuuid'command. If nouuidis specified, thenSVNKitwill generate a new one and will use it to reset the original UUID.- Parameters:
repositoryRoot- repository root locationuuid- new UUID to set- Throws:
SVNException- exception withSVNErrorCode.BAD_UUIDerror code - if theuuidis malformed- Since:
- 1.2.0, SVN 1.5.0
-
doHotCopy
Makes a hot copy of a repository located atsrcRepositoryRootto one located atnewRepositoryRoot. This method is identical to the'svnadmin hotcopy'command.- Parameters:
srcRepositoryRoot- repository to copy data fromnewRepositoryRoot- repository to copy data to- Throws:
SVNException- Since:
- 1.2.0, SVN 1.5.0
-
getYoungestRevision
Returns the HEAD revision of the repository located atrepositoryRoot. Identical to the'svnlook youngest'svn command.- Parameters:
repositoryRoot- repository root location- Returns:
- the last revision
- Throws:
SVNException- Since:
- 1.2.0
-
doFilter
public void doFilter(InputStream dumpStream, OutputStream resultDumpStream, boolean exclude, boolean renumberRevisions, boolean dropEmptyRevisions, boolean preserveRevisionProperties, Collection prefixes, boolean skipMissingMergeSources) throws SVNException Filters out nodes with or without the givenprefixesfromdumpStreamtoresultDumpStream. This method is similar to the functionality provided by the'svndumpfilter'utility. Ifexcludeis true then filters out nodes withprefixes, otherwise nodes withoutprefixes. If the caller hasprovidedan event handler, the handler will be called with different actions:SVNAdminEventAction.DUMP_FILTER_TOTAL_REVISIONS_DROPPED- useSVNAdminEvent.getDroppedRevisionsCount()to retrieve the total number of dropped revisions.SVNAdminEventAction.DUMP_FILTER_DROPPED_RENUMBERED_REVISION- is sent only whenrenumberRevisionsis true and informs that an original revision (which is provided asSVNAdminEvent.getRevision()) was dropped.SVNAdminEventAction.DUMP_FILTER_RENUMBERED_REVISION- is sent only whenrenumberRevisionsis true and informs that the original revision (provided asSVNAdminEvent.getOriginalRevision()) was renumbered toSVNAdminEvent.getRevision().SVNAdminEventAction.DUMP_FILTER_DROPPED_NODE- says thatSVNAdminEvent.getPath()was dropped.SVNAdminEventAction.DUMP_FILTER_TOTAL_NODES_DROPPED- useSVNAdminEvent.getDroppedNodesCount()to retrieve the total number of dropped nodes.SVNAdminEventAction.DUMP_FILTER_REVISION_COMMITTED- is sent to inform that the original revisionSVNAdminEvent.getOriginalRevision()resulted inSVNAdminEvent.getRevision()in the output.SVNAdminEventAction.DUMP_FILTER_REVISION_SKIPPED- is sent to inform that the original revisionSVNAdminEvent.getRevision()is dropped (skipped).- Parameters:
dumpStream- the input repository dump streamresultDumpStream- the resultant (filtered) dump streamexclude- whether to exclude or include paths with the specifiedprefixesrenumberRevisions- if true, renumbers revisions left after filteringdropEmptyRevisions- if true, then removes revisions emptied by filteringpreserveRevisionProperties- if true, then does not filter revision propertiesprefixes- prefixes of the path to filterskipMissingMergeSources- if true, then skips missig merge sources- Throws:
SVNException- Since:
- 1.2.0, SVN 1.5.0
-
handlePropertesCopied
- Throws:
SVNException
-
handleNormalizedProperties
protected void handleNormalizedProperties(int normalizedRevPropsCount, int normalizedNodePropsCount) throws SVNException - Throws:
SVNException
-
normalizeRevisionProperties
- Throws:
SVNException
-
normalizeString
- Throws:
SVNException
-