Class SVNAdminHelper
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.wc.SVNAdminHelper
-
public class SVNAdminHelper extends java.lang.Object
- Version:
- 1.3
- Author:
- TMate Software Ltd.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DUMPFILE_CONTENT_LENGTH
static int
DUMPFILE_FORMAT_VERSION
static java.lang.String
DUMPFILE_MAGIC_HEADER
static java.lang.String
DUMPFILE_NODE_ACTION
static java.lang.String
DUMPFILE_NODE_COPYFROM_PATH
static java.lang.String
DUMPFILE_NODE_COPYFROM_REVISION
static java.lang.String
DUMPFILE_NODE_KIND
static java.lang.String
DUMPFILE_NODE_PATH
static java.lang.String
DUMPFILE_PROP_CONTENT_LENGTH
static java.lang.String
DUMPFILE_PROP_DELTA
static java.lang.String
DUMPFILE_REVISION_NUMBER
static java.lang.String
DUMPFILE_TEXT_CONTENT_LENGTH
static java.lang.String
DUMPFILE_TEXT_CONTENT_MD5
static java.lang.String
DUMPFILE_TEXT_CONTENT_SHA1
static java.lang.String
DUMPFILE_TEXT_COPY_SOURCE_MD5
static java.lang.String
DUMPFILE_TEXT_COPY_SOURCE_SHA1
static java.lang.String
DUMPFILE_TEXT_DELTA
static java.lang.String
DUMPFILE_TEXT_DELTA_BASE_MD5
static java.lang.String
DUMPFILE_TEXT_DELTA_BASE_SHA1
static java.lang.String
DUMPFILE_UUID
static int
NODE_ACTION_ADD
static int
NODE_ACTION_CHANGE
static int
NODE_ACTION_DELETE
static int
NODE_ACTION_REPLACE
static int
NODE_ACTION_UNKNOWN
-
Constructor Summary
Constructors Constructor Description SVNAdminHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
closeRepository(FSFS fsfs)
static void
deltifyDir(FSFS fsfs, FSRevisionRoot srcRoot, java.lang.String srcParentDir, java.lang.String srcEntry, FSRevisionRoot tgtRoot, java.lang.String tgtFullPath, ISVNEditor editor)
static void
generateIncompleteDataError()
static void
generateStreamMalformedError()
static long
getRevisionNumber(SVNRevision revision, long youngestRevision, FSFS fsfs)
static FSFS
openRepository(java.io.File reposRootPath, boolean openFS)
static FSFS
openRepositoryForRecovery(java.io.File reposRootPath)
static int
readKeyOrValue(java.io.InputStream dumpStream, byte[] buffer, int len)
static void
removePropertiesNotInSource(SVNRepository repository, long revision, SVNProperties sourceProps, SVNProperties targetProps)
static void
writeProperties(SVNProperties props, SVNProperties oldProps, java.io.OutputStream dumpStream)
static int
writeRevisionProperties(SVNRepository toRepository, long revision, SVNProperties revProps)
-
-
-
Field Detail
-
DUMPFILE_MAGIC_HEADER
public static final java.lang.String DUMPFILE_MAGIC_HEADER
- See Also:
- Constant Field Values
-
DUMPFILE_CONTENT_LENGTH
public static final java.lang.String DUMPFILE_CONTENT_LENGTH
- See Also:
- Constant Field Values
-
DUMPFILE_NODE_ACTION
public static final java.lang.String DUMPFILE_NODE_ACTION
- See Also:
- Constant Field Values
-
DUMPFILE_NODE_COPYFROM_PATH
public static final java.lang.String DUMPFILE_NODE_COPYFROM_PATH
- See Also:
- Constant Field Values
-
DUMPFILE_NODE_COPYFROM_REVISION
public static final java.lang.String DUMPFILE_NODE_COPYFROM_REVISION
- See Also:
- Constant Field Values
-
DUMPFILE_NODE_KIND
public static final java.lang.String DUMPFILE_NODE_KIND
- See Also:
- Constant Field Values
-
DUMPFILE_NODE_PATH
public static final java.lang.String DUMPFILE_NODE_PATH
- See Also:
- Constant Field Values
-
DUMPFILE_PROP_CONTENT_LENGTH
public static final java.lang.String DUMPFILE_PROP_CONTENT_LENGTH
- See Also:
- Constant Field Values
-
DUMPFILE_PROP_DELTA
public static final java.lang.String DUMPFILE_PROP_DELTA
- See Also:
- Constant Field Values
-
DUMPFILE_REVISION_NUMBER
public static final java.lang.String DUMPFILE_REVISION_NUMBER
- See Also:
- Constant Field Values
-
DUMPFILE_TEXT_CONTENT_LENGTH
public static final java.lang.String DUMPFILE_TEXT_CONTENT_LENGTH
- See Also:
- Constant Field Values
-
DUMPFILE_TEXT_DELTA
public static final java.lang.String DUMPFILE_TEXT_DELTA
- See Also:
- Constant Field Values
-
DUMPFILE_UUID
public static final java.lang.String DUMPFILE_UUID
- See Also:
- Constant Field Values
-
DUMPFILE_TEXT_CONTENT_MD5
public static final java.lang.String DUMPFILE_TEXT_CONTENT_MD5
- See Also:
- Constant Field Values
-
DUMPFILE_TEXT_CONTENT_SHA1
public static final java.lang.String DUMPFILE_TEXT_CONTENT_SHA1
- See Also:
- Constant Field Values
-
DUMPFILE_TEXT_COPY_SOURCE_MD5
public static final java.lang.String DUMPFILE_TEXT_COPY_SOURCE_MD5
- See Also:
- Constant Field Values
-
DUMPFILE_TEXT_COPY_SOURCE_SHA1
public static final java.lang.String DUMPFILE_TEXT_COPY_SOURCE_SHA1
- See Also:
- Constant Field Values
-
DUMPFILE_TEXT_DELTA_BASE_MD5
public static final java.lang.String DUMPFILE_TEXT_DELTA_BASE_MD5
- See Also:
- Constant Field Values
-
DUMPFILE_TEXT_DELTA_BASE_SHA1
public static final java.lang.String DUMPFILE_TEXT_DELTA_BASE_SHA1
- See Also:
- Constant Field Values
-
DUMPFILE_FORMAT_VERSION
public static final int DUMPFILE_FORMAT_VERSION
- See Also:
- Constant Field Values
-
NODE_ACTION_ADD
public static final int NODE_ACTION_ADD
- See Also:
- Constant Field Values
-
NODE_ACTION_CHANGE
public static final int NODE_ACTION_CHANGE
- See Also:
- Constant Field Values
-
NODE_ACTION_DELETE
public static final int NODE_ACTION_DELETE
- See Also:
- Constant Field Values
-
NODE_ACTION_REPLACE
public static final int NODE_ACTION_REPLACE
- See Also:
- Constant Field Values
-
NODE_ACTION_UNKNOWN
public static final int NODE_ACTION_UNKNOWN
- See Also:
- Constant Field Values
-
-
Method Detail
-
writeRevisionProperties
public static int writeRevisionProperties(SVNRepository toRepository, long revision, SVNProperties revProps) throws SVNException
- Throws:
SVNException
-
removePropertiesNotInSource
public static void removePropertiesNotInSource(SVNRepository repository, long revision, SVNProperties sourceProps, SVNProperties targetProps) throws SVNException
- Throws:
SVNException
-
openRepository
public static FSFS openRepository(java.io.File reposRootPath, boolean openFS) throws SVNException
- Throws:
SVNException
-
closeRepository
public static void closeRepository(FSFS fsfs)
-
openRepositoryForRecovery
public static FSFS openRepositoryForRecovery(java.io.File reposRootPath) throws SVNException
- Throws:
SVNException
-
getRevisionNumber
public static long getRevisionNumber(SVNRevision revision, long youngestRevision, FSFS fsfs) throws SVNException
- Throws:
SVNException
-
writeProperties
public static void writeProperties(SVNProperties props, SVNProperties oldProps, java.io.OutputStream dumpStream) throws SVNException
- Throws:
SVNException
-
deltifyDir
public static void deltifyDir(FSFS fsfs, FSRevisionRoot srcRoot, java.lang.String srcParentDir, java.lang.String srcEntry, FSRevisionRoot tgtRoot, java.lang.String tgtFullPath, ISVNEditor editor) throws SVNException
- Throws:
SVNException
-
generateIncompleteDataError
public static void generateIncompleteDataError() throws SVNException
- Throws:
SVNException
-
generateStreamMalformedError
public static void generateStreamMalformedError() throws SVNException
- Throws:
SVNException
-
readKeyOrValue
public static int readKeyOrValue(java.io.InputStream dumpStream, byte[] buffer, int len) throws SVNException, java.io.IOException
- Throws:
SVNException
java.io.IOException
-
-