Class SVNReplicationEditor

  • All Implemented Interfaces:
    ISVNDeltaConsumer, ISVNEditor

    public class SVNReplicationEditor
    extends java.lang.Object
    implements ISVNEditor
    The SVNReplicationEditor is an editor implementation used by a repository replicator as a bridge between an update editor for the source repository and a commit editor of the target one. This editor is provided to an update method of a source SVNRepository driver to properly translate the calls of that driver to calls to a commit editor of the destination SVNRepository driver.
    Since:
    1.2
    Version:
    1.3
    See Also:
    SVNRepository
    • Field Detail

      • myCommitEditor

        private ISVNEditor myCommitEditor
      • myCopiedPaths

        private java.util.Map myCopiedPaths
      • myChangedPaths

        private java.util.Map myChangedPaths
      • myDeletedPaths

        private java.util.Set myDeletedPaths
      • myPathsToFileBatons

        private java.util.Map myPathsToFileBatons
      • myDirsStack

        private java.util.Stack myDirsStack
      • myPreviousRevision

        private long myPreviousRevision
      • myTargetRevision

        private long myTargetRevision
    • Constructor Detail

      • SVNReplicationEditor

        public SVNReplicationEditor​(SVNRepository repository,
                                    ISVNEditor commitEditor,
                                    SVNLogEntry revision)
        Creates a new replication editor.

        repository must be created for the root location of the source repository which is to be replicated.

        Parameters:
        repository - a source repository
        commitEditor - a commit editor received from the destination repository driver (which also must be point to the root location of the destination repository)
        revision - log information of the revision to be copied