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
    Author:
    TMate Software Ltd.
    See Also:
    SVNRepository
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void abortEdit()
      Aborts the transaction.
      void absentDir​(java.lang.String path)
      Does nothing.
      void absentFile​(java.lang.String path)
      Does nothing.
      void addDir​(java.lang.String path, java.lang.String copyFromPath, long copyFromRevision)
      Adds a new directory under the specified path to the target repository.
      void addFile​(java.lang.String path, java.lang.String copyFromPath, long copyFromRevision)
      Adds a new file.
      void applyTextDelta​(java.lang.String path, java.lang.String baseChecksum)
      Starts applying text delta.
      void changeDirProperty​(java.lang.String name, SVNPropertyValue value)
      Changes a property of the current directory.
      void changeFileProperty​(java.lang.String path, java.lang.String name, SVNPropertyValue value)
      Changes file property.
      void closeDir()
      Closes the current opened dir.
      SVNCommitInfo closeEdit()
      Commits the transaction.
      void closeFile​(java.lang.String path, java.lang.String textChecksum)
      Closes the current opened file.
      void deleteEntry​(java.lang.String path, long revision)
      Removes path from the paths to be committed.
      SVNCommitInfo getCommitInfo()
      Returns commit information on the revision committed to the replication destination repository.
      void openDir​(java.lang.String path, long revision)
      Opens a corresponding path in the target repository.
      void openFile​(java.lang.String path, long revision)
      Opens a file.
      void openRoot​(long revision)
      Starts a next replication transaction.
      void targetRevision​(long revision)
      Saves the target revision.
      java.io.OutputStream textDeltaChunk​(java.lang.String path, SVNDiffWindow diffWindow)
      Applies a next chunk of delta.
      void textDeltaEnd​(java.lang.String path)
      Handles text delta end.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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