Class FSRepositoryUtil
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.io.fs.FSRepositoryUtil
-
public class FSRepositoryUtil extends java.lang.Object
- Version:
- 1.3
-
-
Field Summary
Fields Modifier and Type Field Description private static byte[]
BUFFER
private static int
BYTES_IN_LONG
static int
MAX_KEY_SIZE
private static java.lang.ThreadLocal<byte[]>
ourCopyBuffer
-
Constructor Summary
Constructors Constructor Description FSRepositoryUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
align(long size, long boundary)
static boolean
areFileContentsChanged(FSRoot root1, java.lang.String path1, FSRoot root2, java.lang.String path2)
static boolean
arePropertiesChanged(FSRoot root1, java.lang.String path1, FSRoot root2, java.lang.String path2)
static boolean
arePropertiesEqual(FSRevisionNode revNode1, FSRevisionNode revNode2)
private static boolean
areRepresentationsEqual(FSRevisionNode revNode1, FSRevisionNode revNode2, boolean forProperties)
static boolean
checkFilesDifferent(FSRoot root1, java.lang.String path1, FSRoot root2, java.lang.String path2, SVNDeltaCombiner deltaCombiner)
static void
checkReposDBFormat(int format)
static void
copy(java.io.InputStream src, java.io.OutputStream dst, ISVNCanceller canceller)
static int
encodeInt(byte[] bytes, long value)
static int
encodeUnsignedInt(byte[] bytes, long value)
static java.lang.String
generateLockToken()
static java.lang.String
generateNextKey(java.lang.String oldKey)
static SVNProperties
getPropsDiffs(SVNProperties sourceProps, SVNProperties targetProps)
static void
loadRootChangesOffset(FSFS fsfs, long revision, FSFile file, long[] rootOffset, long[] changesOffset)
static void
loadRootChangesOffsetLogicalAddressing(FSFS fsfs, long revision, FSFile file, long index, long[] rootOffset, long[] changesOffset)
static long
readLongLittleEndian(java.io.RandomAccessFile randomAccessFile)
static void
replay(FSFS fsfs, FSRoot root, java.lang.String basePath, long lowRevision, boolean sendDeltas, ISVNEditor editor)
static void
sendTextDelta(ISVNEditor editor, java.lang.String editPath, java.lang.String sourcePath, java.lang.String hexDigest, FSRevisionRoot sourceRoot, java.lang.String targetPath, FSRoot targetRoot, boolean sendDeltas, SVNDeltaCombiner deltaCombiner, SVNDeltaGenerator deltaGenerator, FSFS fsfs)
static void
validateProperty(java.lang.String propertyName, SVNPropertyValue propertyValue)
static void
writeLongLittleEndian(java.io.RandomAccessFile randomAccessFile, long value)
-
-
-
Field Detail
-
MAX_KEY_SIZE
public static final int MAX_KEY_SIZE
- See Also:
- Constant Field Values
-
BYTES_IN_LONG
private static final int BYTES_IN_LONG
- See Also:
- Constant Field Values
-
BUFFER
private static final byte[] BUFFER
-
ourCopyBuffer
private static final java.lang.ThreadLocal<byte[]> ourCopyBuffer
-
-
Method Detail
-
generateLockToken
public static java.lang.String generateLockToken() throws SVNException
- Throws:
SVNException
-
replay
public static void replay(FSFS fsfs, FSRoot root, java.lang.String basePath, long lowRevision, boolean sendDeltas, ISVNEditor editor) throws SVNException
- Throws:
SVNException
-
copy
public static void copy(java.io.InputStream src, java.io.OutputStream dst, ISVNCanceller canceller) throws SVNException
- Throws:
SVNException
-
arePropertiesEqual
public static boolean arePropertiesEqual(FSRevisionNode revNode1, FSRevisionNode revNode2)
-
arePropertiesChanged
public static boolean arePropertiesChanged(FSRoot root1, java.lang.String path1, FSRoot root2, java.lang.String path2) throws SVNException
- Throws:
SVNException
-
areFileContentsChanged
public static boolean areFileContentsChanged(FSRoot root1, java.lang.String path1, FSRoot root2, java.lang.String path2) throws SVNException
- Throws:
SVNException
-
getPropsDiffs
public static SVNProperties getPropsDiffs(SVNProperties sourceProps, SVNProperties targetProps)
-
checkFilesDifferent
public static boolean checkFilesDifferent(FSRoot root1, java.lang.String path1, FSRoot root2, java.lang.String path2, SVNDeltaCombiner deltaCombiner) throws SVNException
- Throws:
SVNException
-
sendTextDelta
public static void sendTextDelta(ISVNEditor editor, java.lang.String editPath, java.lang.String sourcePath, java.lang.String hexDigest, FSRevisionRoot sourceRoot, java.lang.String targetPath, FSRoot targetRoot, boolean sendDeltas, SVNDeltaCombiner deltaCombiner, SVNDeltaGenerator deltaGenerator, FSFS fsfs) throws SVNException
- Throws:
SVNException
-
loadRootChangesOffsetLogicalAddressing
public static void loadRootChangesOffsetLogicalAddressing(FSFS fsfs, long revision, FSFile file, long index, long[] rootOffset, long[] changesOffset) throws SVNException
- Throws:
SVNException
-
loadRootChangesOffset
public static void loadRootChangesOffset(FSFS fsfs, long revision, FSFile file, long[] rootOffset, long[] changesOffset) throws SVNException
- Throws:
SVNException
-
generateNextKey
public static java.lang.String generateNextKey(java.lang.String oldKey) throws SVNException
- Throws:
SVNException
-
checkReposDBFormat
public static void checkReposDBFormat(int format) throws SVNException
- Throws:
SVNException
-
validateProperty
public static void validateProperty(java.lang.String propertyName, SVNPropertyValue propertyValue) throws SVNException
- Throws:
SVNException
-
align
public static long align(long size, long boundary)
-
readLongLittleEndian
public static long readLongLittleEndian(java.io.RandomAccessFile randomAccessFile) throws java.io.IOException
- Throws:
java.io.IOException
-
writeLongLittleEndian
public static void writeLongLittleEndian(java.io.RandomAccessFile randomAccessFile, long value) throws java.io.IOException
- Throws:
java.io.IOException
-
encodeInt
public static int encodeInt(byte[] bytes, long value)
-
encodeUnsignedInt
public static int encodeUnsignedInt(byte[] bytes, long value)
-
areRepresentationsEqual
private static boolean areRepresentationsEqual(FSRevisionNode revNode1, FSRevisionNode revNode2, boolean forProperties)
-
-