public class SvnWcDbPristines extends SvnWcDbShared
Modifier and Type | Class and Description |
---|---|
private static class |
SvnWcDbPristines.PristineTransfer |
private static class |
SvnWcDbPristines.RemoveUnreferencedPristine |
SvnWcDbShared.Target
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
PRISTINE_STORAGE_EXT |
EMPTY_PROPS_BLOB
Constructor and Description |
---|
SvnWcDbPristines() |
Modifier and Type | Method and Description |
---|---|
private static java.util.Map<SvnChecksum,java.lang.Integer> |
calculateCorrectChecksumRefcounts(SVNWCDbRoot root) |
static boolean |
checkPristine(SVNWCDbRoot root,
SvnChecksum sha1Checksum) |
static void |
checkPristineChecksumRefcounts(SVNWCDbRoot root) |
static void |
cleanupPristine(SVNWCDbRoot root,
java.io.File localAbsPath) |
static void |
fixPristinesRefCount(SVNWCDbRoot root) |
static java.io.File |
getPristineFileName(SVNWCDbRoot root,
SvnChecksum sha1Checksum,
boolean createSubdir) |
static java.io.File |
getPristineFuturePath(SVNWCDbRoot root,
SvnChecksum sha1Checksum) |
static java.io.File |
getPristinePath(SVNWCDbRoot root,
SvnChecksum sha1Checksum) |
static SvnChecksum |
getPristineSHA1(SVNWCDbRoot root,
SvnChecksum md5Checksum) |
static java.io.File |
getPristineTempDir(SVNWCDbRoot root,
java.io.File wcRootAbsPath) |
static void |
installPristine(SVNWCDbRoot root,
java.io.File tempfileAbspath,
SvnChecksum sha1Checksum,
SvnChecksum md5Checksum) |
private static java.util.Map<SvnChecksum,java.lang.Integer> |
loadChecksumsRefcountsFromTable(SVNWCDbRoot root) |
private static void |
maybeTransferOnePristine(SVNWCDbRoot srcWcRoot,
SVNWCDbRoot dstWcRoot,
SvnChecksum checksum,
SvnChecksum md5Checksum,
long size) |
private static void |
pristineRemove(SVNWCDbRoot root,
SvnChecksum sha1Checksum) |
static java.io.InputStream |
readPristine(SVNWCDbRoot root,
java.io.File wcRootAbsPath,
SvnChecksum sha1Checksum) |
static void |
removePristine(SVNWCDbRoot root,
SvnChecksum sha1Checksum) |
private static void |
removePristineIfUnreferenced(SVNWCDbRoot root,
java.io.File localAbsPath,
SvnChecksum sha1_checksum) |
static void |
transferPristine(SVNWCDb db,
java.io.File srcLocalAbsPath,
java.io.File dstWriAbsPath) |
begingReadTransaction, begingWriteTransaction, canonicalizeURLs, collectTargets, commitTransaction, doesNodeExists, getBaseInfo, getBaseInfo, getDepthInfo, getMovedFromInfo, nodeIsNotInstallable, nodeNotFound, nodeNotFound, readInfo, readInfo, rollbackTransaction, scanAddition, scanAddition, scanDeletion, scanDeletion, scanMoved, sqliteError
private static final java.lang.String PRISTINE_STORAGE_EXT
public static void cleanupPristine(SVNWCDbRoot root, java.io.File localAbsPath) throws SVNException
SVNException
private static void removePristineIfUnreferenced(SVNWCDbRoot root, java.io.File localAbsPath, SvnChecksum sha1_checksum) throws SVNException
SVNException
public static java.io.File getPristineTempDir(SVNWCDbRoot root, java.io.File wcRootAbsPath) throws SVNException
SVNException
public static java.io.File getPristineFuturePath(SVNWCDbRoot root, SvnChecksum sha1Checksum)
public static java.io.File getPristineFileName(SVNWCDbRoot root, SvnChecksum sha1Checksum, boolean createSubdir)
public static boolean checkPristine(SVNWCDbRoot root, SvnChecksum sha1Checksum) throws SVNException
SVNException
public static SvnChecksum getPristineSHA1(SVNWCDbRoot root, SvnChecksum md5Checksum) throws SVNException
SVNException
public static java.io.File getPristinePath(SVNWCDbRoot root, SvnChecksum sha1Checksum) throws SVNException
SVNException
public static void removePristine(SVNWCDbRoot root, SvnChecksum sha1Checksum) throws SVNException
SVNException
private static void pristineRemove(SVNWCDbRoot root, SvnChecksum sha1Checksum) throws SVNException
SVNException
public static void installPristine(SVNWCDbRoot root, java.io.File tempfileAbspath, SvnChecksum sha1Checksum, SvnChecksum md5Checksum) throws SVNException
SVNException
public static java.io.InputStream readPristine(SVNWCDbRoot root, java.io.File wcRootAbsPath, SvnChecksum sha1Checksum) throws SVNException
SVNException
public static void fixPristinesRefCount(SVNWCDbRoot root) throws SVNException
SVNException
public static void checkPristineChecksumRefcounts(SVNWCDbRoot root) throws SVNException
SVNException
private static java.util.Map<SvnChecksum,java.lang.Integer> calculateCorrectChecksumRefcounts(SVNWCDbRoot root) throws SVNException
SVNException
private static java.util.Map<SvnChecksum,java.lang.Integer> loadChecksumsRefcountsFromTable(SVNWCDbRoot root) throws SVNException
SVNException
public static void transferPristine(SVNWCDb db, java.io.File srcLocalAbsPath, java.io.File dstWriAbsPath) throws SVNException
SVNException
private static void maybeTransferOnePristine(SVNWCDbRoot srcWcRoot, SVNWCDbRoot dstWcRoot, SvnChecksum checksum, SvnChecksum md5Checksum, long size) throws SVNException
SVNException