public class SVNReplayHandler extends java.lang.Object implements ISVNReplayHandler
SVNReplayHandler
is an implementation of ISVNReplayHandler
that is used in
SVNAdminClient.doSynchronize(org.tmatesoft.svn.core.SVNURL)
.Modifier and Type | Field and 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 and Description |
---|
SVNReplayHandler(SVNRepository targetRepository,
boolean hasCommitRevPropsCapability,
ISVNLogEntryHandler logEntryHandler,
ISVNDebugLog debugLog,
ISVNEventHandler canceller,
SVNAdminClient adminClient)
Creates a new replay handler.
|
Modifier and Type | Method and 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.
|
private SVNRepository myTargetRepository
private boolean myHasCommitRevPropsCapability
private ISVNLogEntryHandler myLogEntryHandler
private ISVNDebugLog myDebugLog
private ISVNEventHandler myCanceller
private SVNSynchronizeEditor mySyncEditor
private SVNAdminClient myAdminClient
private int myNormalizedRevPropsCount
public SVNReplayHandler(SVNRepository targetRepository, boolean hasCommitRevPropsCapability, ISVNLogEntryHandler logEntryHandler, ISVNDebugLog debugLog, ISVNEventHandler canceller, SVNAdminClient adminClient)
targetRepository
- hasCommitRevPropsCapability
- logEntryHandler
- debugLog
- canceller
- adminClient
- public ISVNEditor handleStartRevision(long revision, SVNProperties revisionProperties) throws SVNException
ISVNReplayHandler
handleStartRevision
in interface ISVNReplayHandler
revision
- revisionProperties
- SVNException
public void handleEndRevision(long revision, SVNProperties revisionProperties, ISVNEditor editor) throws SVNException
ISVNReplayHandler
editor
.handleEndRevision
in interface ISVNReplayHandler
revision
- revisionProperties
- editor
- SVNException
public int getNormalizedRevPropsCount()
public int getNormalizedNodePropsCount()
private int filterProperties(SVNProperties revProps, SVNProperties filteredProps, boolean isStart)
private boolean filterIncludeDateAuthorSync(java.lang.String propName)
private boolean filterExcludeDateAuthorSync(java.lang.String propName)
private boolean filterIncludeLog(java.lang.String propName)
private boolean filterExcludeLog(java.lang.String propName)