Class SVNAdminHelper
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.wc.SVNAdminHelper
-
public class SVNAdminHelper extends java.lang.Object- Version:
- 1.3
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDUMPFILE_CONTENT_LENGTHstatic intDUMPFILE_FORMAT_VERSIONstatic java.lang.StringDUMPFILE_MAGIC_HEADERstatic java.lang.StringDUMPFILE_NODE_ACTIONstatic java.lang.StringDUMPFILE_NODE_COPYFROM_PATHstatic java.lang.StringDUMPFILE_NODE_COPYFROM_REVISIONstatic java.lang.StringDUMPFILE_NODE_KINDstatic java.lang.StringDUMPFILE_NODE_PATHstatic java.lang.StringDUMPFILE_PROP_CONTENT_LENGTHstatic java.lang.StringDUMPFILE_PROP_DELTAstatic java.lang.StringDUMPFILE_REVISION_NUMBERstatic java.lang.StringDUMPFILE_TEXT_CONTENT_LENGTHstatic java.lang.StringDUMPFILE_TEXT_CONTENT_MD5static java.lang.StringDUMPFILE_TEXT_CONTENT_SHA1static java.lang.StringDUMPFILE_TEXT_COPY_SOURCE_MD5static java.lang.StringDUMPFILE_TEXT_COPY_SOURCE_SHA1static java.lang.StringDUMPFILE_TEXT_DELTAstatic java.lang.StringDUMPFILE_TEXT_DELTA_BASE_MD5static java.lang.StringDUMPFILE_TEXT_DELTA_BASE_SHA1static java.lang.StringDUMPFILE_UUIDstatic intNODE_ACTION_ADDstatic intNODE_ACTION_CHANGEstatic intNODE_ACTION_DELETEstatic intNODE_ACTION_REPLACEstatic intNODE_ACTION_UNKNOWN
-
Constructor Summary
Constructors Constructor Description SVNAdminHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static voidaddFileOrDir(FSFS fsfs, ISVNEditor editor, FSRevisionRoot srcRoot, FSRevisionRoot tgtRoot, java.lang.String tgtPath, java.lang.String editPath, SVNNodeKind tgtKind)static voidcloseRepository(FSFS fsfs)static voiddeltifyDir(FSFS fsfs, FSRevisionRoot srcRoot, java.lang.String srcParentDir, java.lang.String srcEntry, FSRevisionRoot tgtRoot, java.lang.String tgtFullPath, ISVNEditor editor)private static voiddeltifyDirs(FSFS fsfs, ISVNEditor editor, FSRevisionRoot srcRoot, FSRevisionRoot tgtRoot, java.lang.String srcPath, java.lang.String tgtPath, java.lang.String editPath)private static voiddeltifyFiles(FSFS fsfs, ISVNEditor editor, FSRevisionRoot srcRoot, FSRevisionRoot tgtRoot, java.lang.String srcPath, java.lang.String tgtPath, java.lang.String editPath)private static voiddeltifyProperties(FSFS fsfs, ISVNEditor editor, FSRevisionRoot srcRoot, FSRevisionRoot tgtRoot, java.lang.String srcPath, java.lang.String tgtPath, java.lang.String editPath, boolean isDir)static voidgenerateIncompleteDataError()private static voidgenerateNotADirError(java.lang.String role, java.lang.String path)static voidgenerateStreamMalformedError()static longgetRevisionNumber(SVNRevision revision, long youngestRevision, FSFS fsfs)static FSFSopenRepository(java.io.File reposRootPath, boolean openFS)static FSFSopenRepositoryForRecovery(java.io.File reposRootPath)static intreadKeyOrValue(java.io.InputStream dumpStream, byte[] buffer, int len)static voidremovePropertiesNotInSource(SVNRepository repository, long revision, SVNProperties sourceProps, SVNProperties targetProps)private static voidreplaceFileOrDir(FSFS fsfs, ISVNEditor editor, FSRevisionRoot srcRoot, FSRevisionRoot tgtRoot, java.lang.String srcPath, java.lang.String tgtPath, java.lang.String editPath, SVNNodeKind tgtKind)static voidwriteProperties(SVNProperties props, SVNProperties oldProps, java.io.OutputStream dumpStream)static intwriteRevisionProperties(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:
SVNExceptionjava.io.IOException
-
addFileOrDir
private static void addFileOrDir(FSFS fsfs, ISVNEditor editor, FSRevisionRoot srcRoot, FSRevisionRoot tgtRoot, java.lang.String tgtPath, java.lang.String editPath, SVNNodeKind tgtKind) throws SVNException
- Throws:
SVNException
-
replaceFileOrDir
private static void replaceFileOrDir(FSFS fsfs, ISVNEditor editor, FSRevisionRoot srcRoot, FSRevisionRoot tgtRoot, java.lang.String srcPath, java.lang.String tgtPath, java.lang.String editPath, SVNNodeKind tgtKind) throws SVNException
- Throws:
SVNException
-
deltifyFiles
private static void deltifyFiles(FSFS fsfs, ISVNEditor editor, FSRevisionRoot srcRoot, FSRevisionRoot tgtRoot, java.lang.String srcPath, java.lang.String tgtPath, java.lang.String editPath) throws SVNException
- Throws:
SVNException
-
deltifyDirs
private static void deltifyDirs(FSFS fsfs, ISVNEditor editor, FSRevisionRoot srcRoot, FSRevisionRoot tgtRoot, java.lang.String srcPath, java.lang.String tgtPath, java.lang.String editPath) throws SVNException
- Throws:
SVNException
-
deltifyProperties
private static void deltifyProperties(FSFS fsfs, ISVNEditor editor, FSRevisionRoot srcRoot, FSRevisionRoot tgtRoot, java.lang.String srcPath, java.lang.String tgtPath, java.lang.String editPath, boolean isDir) throws SVNException
- Throws:
SVNException
-
generateNotADirError
private static void generateNotADirError(java.lang.String role, java.lang.String path) throws SVNException- Throws:
SVNException
-
-