Package org.tmatesoft.svn.core.wc.admin
Class SVNReplayHandler
java.lang.Object
org.tmatesoft.svn.core.wc.admin.SVNReplayHandler
- All Implemented Interfaces:
ISVNReplayHandler
SVNReplayHandler
is an implementation of ISVNReplayHandler
that is used in
SVNAdminClient.doSynchronize(org.tmatesoft.svn.core.SVNURL)
.- Since:
- 1.2
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SVNAdminClient
private ISVNEventHandler
private ISVNDebugLog
private boolean
private ISVNLogEntryHandler
private int
private SVNSynchronizeEditor
private SVNRepository
-
Constructor Summary
ConstructorsConstructorDescriptionSVNReplayHandler
(SVNRepository targetRepository, boolean hasCommitRevPropsCapability, ISVNLogEntryHandler logEntryHandler, ISVNDebugLog debugLog, ISVNEventHandler canceller, SVNAdminClient adminClient) Creates a new replay handler. -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
filterExcludeDateAuthorSync
(String propName) private boolean
filterExcludeLog
(String propName) private boolean
filterIncludeDateAuthorSync
(String propName) private boolean
filterIncludeLog
(String propName) private int
filterProperties
(SVNProperties revProps, SVNProperties filteredProps, boolean isStart) int
int
void
handleEndRevision
(long revision, SVNProperties revisionProperties, ISVNEditor editor) Handles the end of replaying a next revision.handleStartRevision
(long revision, SVNProperties revisionProperties) Handles the start of replaying a next revision and returns an editor through which the revision will be replayed.
-
Field Details
-
myTargetRepository
-
myHasCommitRevPropsCapability
private boolean myHasCommitRevPropsCapability -
myLogEntryHandler
-
myDebugLog
-
myCanceller
-
mySyncEditor
-
myAdminClient
-
myNormalizedRevPropsCount
private int myNormalizedRevPropsCount
-
-
Constructor Details
-
SVNReplayHandler
public SVNReplayHandler(SVNRepository targetRepository, boolean hasCommitRevPropsCapability, ISVNLogEntryHandler logEntryHandler, ISVNDebugLog debugLog, ISVNEventHandler canceller, SVNAdminClient adminClient) Creates a new replay handler.- Parameters:
targetRepository
-hasCommitRevPropsCapability
-logEntryHandler
-debugLog
-canceller
-adminClient
-
-
-
Method Details
-
handleStartRevision
public ISVNEditor handleStartRevision(long revision, SVNProperties revisionProperties) throws SVNException Description copied from interface:ISVNReplayHandler
Handles the start of replaying a next revision and returns an editor through which the revision will be replayed.- Specified by:
handleStartRevision
in interfaceISVNReplayHandler
- Parameters:
revision
-revisionProperties
-- Returns:
- editor to replicate the revision
- Throws:
SVNException
-
handleEndRevision
public void handleEndRevision(long revision, SVNProperties revisionProperties, ISVNEditor editor) throws SVNException Description copied from interface:ISVNReplayHandler
Handles the end of replaying a next revision. In this method the implementor should close theeditor
.- Specified by:
handleEndRevision
in interfaceISVNReplayHandler
- Parameters:
revision
-revisionProperties
-editor
-- Throws:
SVNException
-
getNormalizedRevPropsCount
public int getNormalizedRevPropsCount() -
getNormalizedNodePropsCount
public int getNormalizedNodePropsCount() -
filterProperties
-
filterIncludeDateAuthorSync
-
filterExcludeDateAuthorSync
-
filterIncludeLog
-
filterExcludeLog
-