public class FSRepositoryUtil extends Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_KEY_SIZE |
Constructor and Description |
---|
FSRepositoryUtil() |
Modifier and Type | Method and Description |
---|---|
static long |
align(long size,
long boundary) |
static boolean |
areFileContentsChanged(FSRoot root1,
String path1,
FSRoot root2,
String path2) |
static boolean |
arePropertiesChanged(FSRoot root1,
String path1,
FSRoot root2,
String path2) |
static boolean |
arePropertiesEqual(FSRevisionNode revNode1,
FSRevisionNode revNode2) |
static boolean |
checkFilesDifferent(FSRoot root1,
String path1,
FSRoot root2,
String path2,
SVNDeltaCombiner deltaCombiner) |
static void |
checkReposDBFormat(int format) |
static void |
copy(InputStream src,
OutputStream dst,
ISVNCanceller canceller) |
static int |
encodeInt(byte[] bytes,
long value) |
static int |
encodeUnsignedInt(byte[] bytes,
long value) |
static String |
generateLockToken() |
static String |
generateNextKey(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(RandomAccessFile randomAccessFile) |
static void |
replay(FSFS fsfs,
FSRoot root,
String basePath,
long lowRevision,
boolean sendDeltas,
ISVNEditor editor) |
static void |
sendTextDelta(ISVNEditor editor,
String editPath,
String sourcePath,
String hexDigest,
FSRevisionRoot sourceRoot,
String targetPath,
FSRoot targetRoot,
boolean sendDeltas,
SVNDeltaCombiner deltaCombiner,
SVNDeltaGenerator deltaGenerator,
FSFS fsfs) |
static void |
validateProperty(String propertyName,
SVNPropertyValue propertyValue) |
static void |
writeLongLittleEndian(RandomAccessFile randomAccessFile,
long value) |
public static final int MAX_KEY_SIZE
public static String generateLockToken() throws SVNException
SVNException
public static void replay(FSFS fsfs, FSRoot root, String basePath, long lowRevision, boolean sendDeltas, ISVNEditor editor) throws SVNException
SVNException
public static void copy(InputStream src, OutputStream dst, ISVNCanceller canceller) throws SVNException
SVNException
public static boolean arePropertiesEqual(FSRevisionNode revNode1, FSRevisionNode revNode2)
public static boolean arePropertiesChanged(FSRoot root1, String path1, FSRoot root2, String path2) throws SVNException
SVNException
public static boolean areFileContentsChanged(FSRoot root1, String path1, FSRoot root2, String path2) throws SVNException
SVNException
public static SVNProperties getPropsDiffs(SVNProperties sourceProps, SVNProperties targetProps)
public static boolean checkFilesDifferent(FSRoot root1, String path1, FSRoot root2, String path2, SVNDeltaCombiner deltaCombiner) throws SVNException
SVNException
public static void sendTextDelta(ISVNEditor editor, String editPath, String sourcePath, String hexDigest, FSRevisionRoot sourceRoot, String targetPath, FSRoot targetRoot, boolean sendDeltas, SVNDeltaCombiner deltaCombiner, SVNDeltaGenerator deltaGenerator, FSFS fsfs) throws SVNException
SVNException
public static void loadRootChangesOffsetLogicalAddressing(FSFS fsfs, long revision, FSFile file, long index, long[] rootOffset, long[] changesOffset) throws SVNException
SVNException
public static void loadRootChangesOffset(FSFS fsfs, long revision, FSFile file, long[] rootOffset, long[] changesOffset) throws SVNException
SVNException
public static String generateNextKey(String oldKey) throws SVNException
SVNException
public static void checkReposDBFormat(int format) throws SVNException
SVNException
public static void validateProperty(String propertyName, SVNPropertyValue propertyValue) throws SVNException
SVNException
public static long align(long size, long boundary)
public static long readLongLittleEndian(RandomAccessFile randomAccessFile) throws IOException
IOException
public static void writeLongLittleEndian(RandomAccessFile randomAccessFile, long value) throws IOException
IOException
public static int encodeInt(byte[] bytes, long value)
public static int encodeUnsignedInt(byte[] bytes, long value)
Copyright © 2022. All rights reserved.