Class SVNAdminHelper
java.lang.Object
org.tmatesoft.svn.core.internal.wc.SVNAdminHelper
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final int
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
addFileOrDir
(FSFS fsfs, ISVNEditor editor, FSRevisionRoot srcRoot, FSRevisionRoot tgtRoot, String tgtPath, String editPath, SVNNodeKind tgtKind) static void
closeRepository
(FSFS fsfs) static void
deltifyDir
(FSFS fsfs, FSRevisionRoot srcRoot, String srcParentDir, String srcEntry, FSRevisionRoot tgtRoot, String tgtFullPath, ISVNEditor editor) private static void
deltifyDirs
(FSFS fsfs, ISVNEditor editor, FSRevisionRoot srcRoot, FSRevisionRoot tgtRoot, String srcPath, String tgtPath, String editPath) private static void
deltifyFiles
(FSFS fsfs, ISVNEditor editor, FSRevisionRoot srcRoot, FSRevisionRoot tgtRoot, String srcPath, String tgtPath, String editPath) private static void
deltifyProperties
(FSFS fsfs, ISVNEditor editor, FSRevisionRoot srcRoot, FSRevisionRoot tgtRoot, String srcPath, String tgtPath, String editPath, boolean isDir) static void
private static void
generateNotADirError
(String role, String path) static void
static long
getRevisionNumber
(SVNRevision revision, long youngestRevision, FSFS fsfs) static FSFS
openRepository
(File reposRootPath, boolean openFS) static FSFS
openRepositoryForRecovery
(File reposRootPath) static int
readKeyOrValue
(InputStream dumpStream, byte[] buffer, int len) static void
removePropertiesNotInSource
(SVNRepository repository, long revision, SVNProperties sourceProps, SVNProperties targetProps) private static void
replaceFileOrDir
(FSFS fsfs, ISVNEditor editor, FSRevisionRoot srcRoot, FSRevisionRoot tgtRoot, String srcPath, String tgtPath, String editPath, SVNNodeKind tgtKind) static void
writeProperties
(SVNProperties props, SVNProperties oldProps, OutputStream dumpStream) static int
writeRevisionProperties
(SVNRepository toRepository, long revision, SVNProperties revProps)
-
Field Details
-
DUMPFILE_MAGIC_HEADER
- See Also:
-
DUMPFILE_CONTENT_LENGTH
- See Also:
-
DUMPFILE_NODE_ACTION
- See Also:
-
DUMPFILE_NODE_COPYFROM_PATH
- See Also:
-
DUMPFILE_NODE_COPYFROM_REVISION
- See Also:
-
DUMPFILE_NODE_KIND
- See Also:
-
DUMPFILE_NODE_PATH
- See Also:
-
DUMPFILE_PROP_CONTENT_LENGTH
- See Also:
-
DUMPFILE_PROP_DELTA
- See Also:
-
DUMPFILE_REVISION_NUMBER
- See Also:
-
DUMPFILE_TEXT_CONTENT_LENGTH
- See Also:
-
DUMPFILE_TEXT_DELTA
- See Also:
-
DUMPFILE_UUID
- See Also:
-
DUMPFILE_TEXT_CONTENT_MD5
- See Also:
-
DUMPFILE_TEXT_CONTENT_SHA1
- See Also:
-
DUMPFILE_TEXT_COPY_SOURCE_MD5
- See Also:
-
DUMPFILE_TEXT_COPY_SOURCE_SHA1
- See Also:
-
DUMPFILE_TEXT_DELTA_BASE_MD5
- See Also:
-
DUMPFILE_TEXT_DELTA_BASE_SHA1
- See Also:
-
DUMPFILE_FORMAT_VERSION
public static final int DUMPFILE_FORMAT_VERSION- See Also:
-
NODE_ACTION_ADD
public static final int NODE_ACTION_ADD- See Also:
-
NODE_ACTION_CHANGE
public static final int NODE_ACTION_CHANGE- See Also:
-
NODE_ACTION_DELETE
public static final int NODE_ACTION_DELETE- See Also:
-
NODE_ACTION_REPLACE
public static final int NODE_ACTION_REPLACE- See Also:
-
NODE_ACTION_UNKNOWN
public static final int NODE_ACTION_UNKNOWN- See Also:
-
-
Constructor Details
-
SVNAdminHelper
public SVNAdminHelper()
-
-
Method Details
-
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
- Throws:
SVNException
-
closeRepository
-
openRepositoryForRecovery
- 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, OutputStream dumpStream) throws SVNException - Throws:
SVNException
-
deltifyDir
public static void deltifyDir(FSFS fsfs, FSRevisionRoot srcRoot, String srcParentDir, String srcEntry, FSRevisionRoot tgtRoot, String tgtFullPath, ISVNEditor editor) throws SVNException - Throws:
SVNException
-
generateIncompleteDataError
- Throws:
SVNException
-
generateStreamMalformedError
- Throws:
SVNException
-
readKeyOrValue
public static int readKeyOrValue(InputStream dumpStream, byte[] buffer, int len) throws SVNException, IOException - Throws:
SVNException
IOException
-
addFileOrDir
private static void addFileOrDir(FSFS fsfs, ISVNEditor editor, FSRevisionRoot srcRoot, FSRevisionRoot tgtRoot, String tgtPath, String editPath, SVNNodeKind tgtKind) throws SVNException - Throws:
SVNException
-
replaceFileOrDir
private static void replaceFileOrDir(FSFS fsfs, ISVNEditor editor, FSRevisionRoot srcRoot, FSRevisionRoot tgtRoot, String srcPath, String tgtPath, String editPath, SVNNodeKind tgtKind) throws SVNException - Throws:
SVNException
-
deltifyFiles
private static void deltifyFiles(FSFS fsfs, ISVNEditor editor, FSRevisionRoot srcRoot, FSRevisionRoot tgtRoot, String srcPath, String tgtPath, String editPath) throws SVNException - Throws:
SVNException
-
deltifyDirs
private static void deltifyDirs(FSFS fsfs, ISVNEditor editor, FSRevisionRoot srcRoot, FSRevisionRoot tgtRoot, String srcPath, String tgtPath, String editPath) throws SVNException - Throws:
SVNException
-
deltifyProperties
private static void deltifyProperties(FSFS fsfs, ISVNEditor editor, FSRevisionRoot srcRoot, FSRevisionRoot tgtRoot, String srcPath, String tgtPath, String editPath, boolean isDir) throws SVNException - Throws:
SVNException
-
generateNotADirError
- Throws:
SVNException
-