Package org.tmatesoft.svn.core.wc.admin
Class SVNReplayHandler
- java.lang.Object
-
- org.tmatesoft.svn.core.wc.admin.SVNReplayHandler
-
- All Implemented Interfaces:
ISVNReplayHandler
public class SVNReplayHandler extends java.lang.Object implements ISVNReplayHandler
SVNReplayHandler
is an implementation ofISVNReplayHandler
that is used inSVNAdminClient.doSynchronize(org.tmatesoft.svn.core.SVNURL)
.- Since:
- 1.2
- Version:
- 1.3
-
-
Field Summary
Fields Modifier and Type Field Description private SVNAdminClient
myAdminClient
private ISVNEventHandler
myCanceller
private ISVNDebugLog
myDebugLog
private boolean
myHasCommitRevPropsCapability
private ISVNLogEntryHandler
myLogEntryHandler
private int
myNormalizedRevPropsCount
private SVNSynchronizeEditor
mySyncEditor
private SVNRepository
myTargetRepository
-
Constructor Summary
Constructors Constructor Description SVNReplayHandler(SVNRepository targetRepository, boolean hasCommitRevPropsCapability, ISVNLogEntryHandler logEntryHandler, ISVNDebugLog debugLog, ISVNEventHandler canceller, SVNAdminClient adminClient)
Creates a new replay handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean
filterExcludeDateAuthorSync(java.lang.String propName)
private boolean
filterExcludeLog(java.lang.String propName)
private boolean
filterIncludeDateAuthorSync(java.lang.String propName)
private boolean
filterIncludeLog(java.lang.String propName)
private int
filterProperties(SVNProperties revProps, SVNProperties filteredProps, boolean isStart)
int
getNormalizedNodePropsCount()
int
getNormalizedRevPropsCount()
void
handleEndRevision(long revision, SVNProperties revisionProperties, ISVNEditor editor)
Handles the end of replaying a next revision.ISVNEditor
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 Detail
-
myTargetRepository
private SVNRepository myTargetRepository
-
myHasCommitRevPropsCapability
private boolean myHasCommitRevPropsCapability
-
myLogEntryHandler
private ISVNLogEntryHandler myLogEntryHandler
-
myDebugLog
private ISVNDebugLog myDebugLog
-
myCanceller
private ISVNEventHandler myCanceller
-
mySyncEditor
private SVNSynchronizeEditor mySyncEditor
-
myAdminClient
private SVNAdminClient myAdminClient
-
myNormalizedRevPropsCount
private int myNormalizedRevPropsCount
-
-
Constructor Detail
-
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 Detail
-
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
private int filterProperties(SVNProperties revProps, SVNProperties filteredProps, boolean isStart)
-
filterIncludeDateAuthorSync
private boolean filterIncludeDateAuthorSync(java.lang.String propName)
-
filterExcludeDateAuthorSync
private boolean filterExcludeDateAuthorSync(java.lang.String propName)
-
filterIncludeLog
private boolean filterIncludeLog(java.lang.String propName)
-
filterExcludeLog
private boolean filterExcludeLog(java.lang.String propName)
-
-