Class FSFS
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.io.fs.FSFS
-
public class FSFS extends java.lang.Object- Version:
- 1.3
- Author:
- TMate Software Ltd.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBLOCK_SIZE_OPTIONstatic java.lang.StringCHILDREN_LOCK_KEYstatic java.lang.StringCOMMENT_LOCK_KEYstatic java.lang.StringCOMPRESS_PACKED_REVPROPS_OPTIONstatic java.lang.StringCREATION_DATE_LOCK_KEYstatic java.lang.StringCURRENT_FILEstatic java.lang.StringDAV_DIRstatic java.lang.StringDB_DIRstatic intDB_FORMATstatic java.lang.StringDB_FORMAT_FILEstatic intDB_FORMAT_LOWstatic intDB_FORMAT_PRE_17static booleanDB_FORMAT_PRE_17_USE_AS_DEFAULTstatic java.lang.StringDB_LOCK_FILEstatic java.lang.StringDB_LOGS_LOCK_FILEstatic intDIGEST_SUBDIR_LENstatic java.lang.StringENABLE_REP_SHARING_OPTIONstatic java.lang.StringEXPIRATION_DATE_LOCK_KEYstatic java.lang.StringFS_TYPE_FILEstatic java.lang.StringIO_SECTIONstatic java.lang.StringIS_DAV_COMMENT_LOCK_KEYstatic java.lang.StringL2P_PAGE_SIZE_OPTIONstatic intLAYOUT_FORMAT_OPTION_MINIMAL_FORMATstatic java.lang.StringLOCKS_DIRstatic java.lang.StringMANIFEST_FILEstatic intMIN_CURRENT_TXN_FORMATstatic intMIN_KIND_IN_CHANGED_FORMATstatic intMIN_LOG_ADDRESSING_MINIMAL_FORMATstatic intMIN_MERGE_INFO_FORMATstatic intMIN_MERGEINFO_IN_CHANGED_FORMATstatic intMIN_NO_GLOBAL_IDS_FORMATstatic intMIN_PACKED_FORMATstatic intMIN_PACKED_REVPROP_FORMATstatic intMIN_PACKED_REVPROP_SQLITE_DEV_FORMATstatic intMIN_PROTOREVS_DIR_FORMATstatic intMIN_REP_SHARING_FORMATstatic intMIN_SVNDIFF1_FORMATstatic java.lang.StringMIN_UNPACKED_REVstatic java.lang.StringMIN_UNPACKED_REV_FILEstatic java.lang.StringNODE_ORIGINS_DIRstatic java.lang.StringOWNER_LOCK_KEYstatic java.lang.StringP2L_PAGE_SIZE_OPTIONstatic java.lang.StringPACK_EXTstatic java.lang.StringPACK_KIND_MANIFESTstatic java.lang.StringPACK_KIND_PACKstatic java.lang.StringPACKED_REVPROPS_SECTIONstatic java.lang.StringPATH_CONFIGstatic java.lang.StringPATH_LOCK_KEYstatic java.lang.StringPATH_PREFIX_NODEstatic java.lang.StringPRE_12_COMPAT_UNNEEDED_FILE_CONTENTSstatic java.lang.StringREP_CACHE_DBstatic java.lang.StringREP_SHARING_SECTIONstatic java.lang.StringREPOS_FORMAT_FILEstatic intREPOSITORY_FORMATstatic intREPOSITORY_FORMAT_LEGACYstatic java.lang.StringREVISION_PROPERTIES_DBstatic java.lang.StringREVISION_PROPERTIES_DIRstatic java.lang.StringREVISION_PROPERTIES_TABLEstatic java.lang.StringREVPROP_PACK_SIZE_OPTIONstatic java.lang.StringREVS_DIRstatic java.lang.StringSVN_OPAQUE_LOCK_TOKENstatic java.lang.StringTOKEN_LOCK_KEYstatic java.lang.StringTRANSACTION_PROTOS_DIRstatic java.lang.StringTRANSACTIONS_DIRstatic java.lang.StringTXN_CURRENT_FILEstatic java.lang.StringTXN_CURRENT_LOCK_FILEstatic java.lang.StringTXN_MERGEINFO_PATHstatic java.lang.StringTXN_PATH_EXTstatic java.lang.StringTXN_PATH_EXT_CHILDRENstatic java.lang.StringTXN_PATH_EXT_PROPSstatic java.lang.StringTXN_PATH_REVstatic java.lang.StringUUID_FILEstatic java.lang.StringWRITE_LOCK_FILE
-
Constructor Summary
Constructors Constructor Description FSFS(java.io.File repositoryRoot)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchangeTransactionProperties(java.lang.String txnId, SVNProperties txnProperties)voidclose()SVNPropertiescompoundMetaProperties(long revision)voidcreateNewTxnNodeRevisionFromRevision(java.lang.String txnID, FSRevisionNode sourceNode)FSRevisionRootcreateRevisionRoot(long revision)FSTransactionRootcreateTransactionRoot(FSTransactionInfo txn)voiddeleteLock(SVNLock lock)SVNLockfetchLockFromDigestFile(java.io.File digestFile, java.lang.String repositoryPath, java.util.Collection children)static java.io.FilefindRepositoryRoot(java.io.File path)static java.lang.StringfindRepositoryRoot(java.lang.String host, java.lang.String path)protected java.io.FilegetAbsoluteRevisionPath(long revision)java.lang.StringgetAndIncrementTxnKey()longgetBlockSize()java.io.FilegetConfigFile()java.io.FilegetCurrentFile()longgetDatedRevision(java.util.Date date)intgetDBFormat()java.io.FilegetDBFormatFile()java.io.FilegetDBLocksDir()java.io.FilegetDBLogsLockFile()java.io.FilegetDBRevsDir()java.io.FilegetDBRoot()static longgetDefaultMaxFilesPerDirectory()longgetDeletedRevision(java.lang.String path, long startRev, long endRev)java.io.FilegetDigestFileFromRepositoryPath(java.lang.String repositoryPath)java.lang.StringgetDigestFromRepositoryPath(java.lang.String repositoryPath)java.util.MapgetDirContents(FSRevisionNode revNode)java.lang.StringgetFSType()java.io.FilegetFSTypeFile()longgetL2PPageSize()SVNLockgetLock(java.lang.String repositoryPath, boolean haveWriteLock, boolean throwError)SVNLockgetLockHelper(java.lang.String repositoryPath, boolean haveWriteLock)protected java.io.FilegetManifestFile(long revision)longgetMaxFilesPerDirectory()longgetMinUnpackedRev()protected java.io.FilegetMinUnpackedRevFile()longgetMinUnpackedRevProp()java.io.FilegetMinUnpackedRevPropPath()java.io.FilegetNewRevisionFile(long newRevision)java.io.FilegetNewRevisionPropertiesFile(long newRevision)java.io.FilegetNextIDsFile(java.lang.String txnID)java.lang.String[]getNextRevisionIDs()java.lang.StringgetNodeOrigin(java.lang.String nodeID)protected java.io.FilegetNodeOriginFile(java.lang.String nodeID)java.io.FilegetNodeOriginsDir()longgetP2LPageSize()protected java.io.FilegetPackDir(long revision)longgetPackedBaseRevision(long revision)protected longgetPackedOffset(long revision)protected java.io.FilegetPackedRevPath(long revision, java.lang.String kind)protected java.io.FilegetPackedRevPropsShardPath(long revision)protected java.io.FilegetPackFile(long revision)protected FSFilegetPackOrRevisionFSFile(long revision)SVNLocationEntrygetPreviousLocation(java.lang.String path, long revision, long[] appearedRevision)SVNPropertiesgetProperties(FSRevisionNode revNode)intgetReposFormat()java.io.FilegetRepositoryCacheFile()IFSRepresentationCacheManagergetRepositoryCacheManager()java.io.FilegetRepositoryFormatFile()java.io.FilegetRepositoryRoot()protected java.io.FilegetRevisionFile(long revision)protected FSFilegetRevisionFSFile(long revision)FSRevisionNodegetRevisionNode(FSID id)SVNPropertiesgetRevisionProperties(long revision)java.io.FilegetRevisionPropertiesDbPath()java.io.FilegetRevisionPropertiesFile(long revision, boolean returnMissing)java.io.FilegetRevisionPropertiesRoot()protected longgetRevPropPackSize()protected FSFilegetTransactionChangesFile(java.lang.String txnID)protected java.io.FilegetTransactionCurrentFile()protected java.io.FilegetTransactionCurrentLockFile()java.io.FilegetTransactionDir(java.lang.String txnID)SVNPropertiesgetTransactionProperties(java.lang.String txnID)java.io.FilegetTransactionPropertiesFile(java.lang.String txnID)java.io.FilegetTransactionProtoRevFile(java.lang.String txnID)java.io.FilegetTransactionProtoRevLockFile(java.lang.String txnID)java.io.FilegetTransactionProtoRevsDir()protected FSFilegetTransactionRevisionNodeChildrenFile(FSID txnID)protected FSFilegetTransactionRevisionNodePropertiesFile(FSID id)protected FSFilegetTransactionRevisionPrototypeFile(java.lang.String txnID)java.io.FilegetTransactionRevNodeFile(FSID id)java.io.FilegetTransactionsParentDir()java.lang.StringgetUUID()java.io.FilegetUUIDFile()java.io.FilegetWriteLockFile()longgetYoungestRevision()booleanisCompressPackedRevprops()booleanisHooksEnabled()booleanisPackedRevision(long revision)booleanisRepSharingAllowed()booleanisUseLogAddressing()java.util.MaplistTransactions()SVNLocklockPath(java.lang.String path, java.lang.String token, java.lang.String username, java.lang.String comment, java.util.Date expirationDate, long currentRevision, boolean stealLock, boolean isDAVComment)protected longlookupOffsetInIndex(FSFile file, long revision, long itemIndex)protected longlookupOffsetInProtoIndex(FSFile file, java.lang.String txnId, long itemIndex)voidopen()FSFileopenAndSeekRepresentation(FSRepresentation rep)voidopenDB()voidopenForRecovery()voidopenRoot()FSTransactionInfoopenTxn(java.lang.String txnName)voidpurgeTxn(java.lang.String txnID)voidputTxnRevisionNode(FSID id, FSRevisionNode revNode)intreadDBFormat()voidreadOptions(FSFile formatFile, int formatNumber)static voidsetDefaultMaxFilesPerDirectory(long maxFilesPerDirectory)voidsetHooksEnabled(boolean enabled)voidsetNodeOrigin(java.lang.String nodeID, FSID nodeRevisionID)voidsetRevisionProperty(long revision, java.lang.String propertyName, SVNPropertyValue propertyValue)voidsetTransactionProperty(java.lang.String txnID, java.lang.String name, SVNPropertyValue propertyValue)voidsetUUID(java.lang.String uuid)voidsetYoungestRevisionCache(long revision)booleansupportsMergeInfo()voidunlockPath(java.lang.String path, java.lang.String token, java.lang.String username, boolean breakLock, boolean enableHooks)voidupdateMinUnpackedRevProp()voidupgrade()voidwalkDigestFiles(java.io.File digestFile, ISVNLockHandler getLocksHandler, boolean haveWriteLock)protected voidwriteCurrentFile(long revision, java.lang.String nextNodeID, java.lang.String nextCopyID)voidwriteDBFormat(int format, long maxFilesPerDir, boolean overwrite)voidwriteNextIDs(java.lang.String txnID, java.lang.String nodeID, java.lang.String copyID)voidwriteTxnNodeRevision(java.io.OutputStream revNodeFile, FSRevisionNode revNode)
-
-
-
Field Detail
-
DB_DIR
public static final java.lang.String DB_DIR
- See Also:
- Constant Field Values
-
REVS_DIR
public static final java.lang.String REVS_DIR
- See Also:
- Constant Field Values
-
REPOS_FORMAT_FILE
public static final java.lang.String REPOS_FORMAT_FILE
- See Also:
- Constant Field Values
-
DB_FORMAT_FILE
public static final java.lang.String DB_FORMAT_FILE
- See Also:
- Constant Field Values
-
DB_LOGS_LOCK_FILE
public static final java.lang.String DB_LOGS_LOCK_FILE
- See Also:
- Constant Field Values
-
DB_LOCK_FILE
public static final java.lang.String DB_LOCK_FILE
- See Also:
- Constant Field Values
-
CURRENT_FILE
public static final java.lang.String CURRENT_FILE
- See Also:
- Constant Field Values
-
UUID_FILE
public static final java.lang.String UUID_FILE
- See Also:
- Constant Field Values
-
FS_TYPE_FILE
public static final java.lang.String FS_TYPE_FILE
- See Also:
- Constant Field Values
-
TXN_CURRENT_FILE
public static final java.lang.String TXN_CURRENT_FILE
- See Also:
- Constant Field Values
-
MIN_UNPACKED_REV_FILE
public static final java.lang.String MIN_UNPACKED_REV_FILE
- See Also:
- Constant Field Values
-
TXN_CURRENT_LOCK_FILE
public static final java.lang.String TXN_CURRENT_LOCK_FILE
- See Also:
- Constant Field Values
-
REVISION_PROPERTIES_DIR
public static final java.lang.String REVISION_PROPERTIES_DIR
- See Also:
- Constant Field Values
-
WRITE_LOCK_FILE
public static final java.lang.String WRITE_LOCK_FILE
- See Also:
- Constant Field Values
-
LOCKS_DIR
public static final java.lang.String LOCKS_DIR
- See Also:
- Constant Field Values
-
DAV_DIR
public static final java.lang.String DAV_DIR
- See Also:
- Constant Field Values
-
TRANSACTIONS_DIR
public static final java.lang.String TRANSACTIONS_DIR
- See Also:
- Constant Field Values
-
TRANSACTION_PROTOS_DIR
public static final java.lang.String TRANSACTION_PROTOS_DIR
- See Also:
- Constant Field Values
-
NODE_ORIGINS_DIR
public static final java.lang.String NODE_ORIGINS_DIR
- See Also:
- Constant Field Values
-
MANIFEST_FILE
public static final java.lang.String MANIFEST_FILE
- See Also:
- Constant Field Values
-
REP_CACHE_DB
public static final java.lang.String REP_CACHE_DB
- See Also:
- Constant Field Values
-
PACK_EXT
public static final java.lang.String PACK_EXT
- See Also:
- Constant Field Values
-
PACK_KIND_PACK
public static final java.lang.String PACK_KIND_PACK
- See Also:
- Constant Field Values
-
PACK_KIND_MANIFEST
public static final java.lang.String PACK_KIND_MANIFEST
- See Also:
- Constant Field Values
-
ENABLE_REP_SHARING_OPTION
public static final java.lang.String ENABLE_REP_SHARING_OPTION
- See Also:
- Constant Field Values
-
REP_SHARING_SECTION
public static final java.lang.String REP_SHARING_SECTION
- See Also:
- Constant Field Values
-
PACKED_REVPROPS_SECTION
public static final java.lang.String PACKED_REVPROPS_SECTION
- See Also:
- Constant Field Values
-
COMPRESS_PACKED_REVPROPS_OPTION
public static final java.lang.String COMPRESS_PACKED_REVPROPS_OPTION
- See Also:
- Constant Field Values
-
REVPROP_PACK_SIZE_OPTION
public static final java.lang.String REVPROP_PACK_SIZE_OPTION
- See Also:
- Constant Field Values
-
IO_SECTION
public static final java.lang.String IO_SECTION
- See Also:
- Constant Field Values
-
BLOCK_SIZE_OPTION
public static final java.lang.String BLOCK_SIZE_OPTION
- See Also:
- Constant Field Values
-
L2P_PAGE_SIZE_OPTION
public static final java.lang.String L2P_PAGE_SIZE_OPTION
- See Also:
- Constant Field Values
-
P2L_PAGE_SIZE_OPTION
public static final java.lang.String P2L_PAGE_SIZE_OPTION
- See Also:
- Constant Field Values
-
PATH_CONFIG
public static final java.lang.String PATH_CONFIG
- See Also:
- Constant Field Values
-
TXN_PATH_EXT
public static final java.lang.String TXN_PATH_EXT
- See Also:
- Constant Field Values
-
TXN_MERGEINFO_PATH
public static final java.lang.String TXN_MERGEINFO_PATH
- See Also:
- Constant Field Values
-
TXN_PATH_EXT_CHILDREN
public static final java.lang.String TXN_PATH_EXT_CHILDREN
- See Also:
- Constant Field Values
-
PATH_PREFIX_NODE
public static final java.lang.String PATH_PREFIX_NODE
- See Also:
- Constant Field Values
-
TXN_PATH_EXT_PROPS
public static final java.lang.String TXN_PATH_EXT_PROPS
- See Also:
- Constant Field Values
-
SVN_OPAQUE_LOCK_TOKEN
public static final java.lang.String SVN_OPAQUE_LOCK_TOKEN
- See Also:
- Constant Field Values
-
TXN_PATH_REV
public static final java.lang.String TXN_PATH_REV
- See Also:
- Constant Field Values
-
PATH_LOCK_KEY
public static final java.lang.String PATH_LOCK_KEY
- See Also:
- Constant Field Values
-
CHILDREN_LOCK_KEY
public static final java.lang.String CHILDREN_LOCK_KEY
- See Also:
- Constant Field Values
-
TOKEN_LOCK_KEY
public static final java.lang.String TOKEN_LOCK_KEY
- See Also:
- Constant Field Values
-
OWNER_LOCK_KEY
public static final java.lang.String OWNER_LOCK_KEY
- See Also:
- Constant Field Values
-
IS_DAV_COMMENT_LOCK_KEY
public static final java.lang.String IS_DAV_COMMENT_LOCK_KEY
- See Also:
- Constant Field Values
-
CREATION_DATE_LOCK_KEY
public static final java.lang.String CREATION_DATE_LOCK_KEY
- See Also:
- Constant Field Values
-
EXPIRATION_DATE_LOCK_KEY
public static final java.lang.String EXPIRATION_DATE_LOCK_KEY
- See Also:
- Constant Field Values
-
COMMENT_LOCK_KEY
public static final java.lang.String COMMENT_LOCK_KEY
- See Also:
- Constant Field Values
-
PRE_12_COMPAT_UNNEEDED_FILE_CONTENTS
public static final java.lang.String PRE_12_COMPAT_UNNEEDED_FILE_CONTENTS
- See Also:
- Constant Field Values
-
DIGEST_SUBDIR_LEN
public static final int DIGEST_SUBDIR_LEN
- See Also:
- Constant Field Values
-
REPOSITORY_FORMAT
public static final int REPOSITORY_FORMAT
- See Also:
- Constant Field Values
-
REPOSITORY_FORMAT_LEGACY
public static final int REPOSITORY_FORMAT_LEGACY
- See Also:
- Constant Field Values
-
DB_FORMAT_PRE_17
public static final int DB_FORMAT_PRE_17
- See Also:
- Constant Field Values
-
DB_FORMAT
public static final int DB_FORMAT
- See Also:
- Constant Field Values
-
DB_FORMAT_LOW
public static final int DB_FORMAT_LOW
- See Also:
- Constant Field Values
-
MIN_SVNDIFF1_FORMAT
public static final int MIN_SVNDIFF1_FORMAT
- See Also:
- Constant Field Values
-
LAYOUT_FORMAT_OPTION_MINIMAL_FORMAT
public static final int LAYOUT_FORMAT_OPTION_MINIMAL_FORMAT
- See Also:
- Constant Field Values
-
MIN_CURRENT_TXN_FORMAT
public static final int MIN_CURRENT_TXN_FORMAT
- See Also:
- Constant Field Values
-
MIN_PROTOREVS_DIR_FORMAT
public static final int MIN_PROTOREVS_DIR_FORMAT
- See Also:
- Constant Field Values
-
MIN_NO_GLOBAL_IDS_FORMAT
public static final int MIN_NO_GLOBAL_IDS_FORMAT
- See Also:
- Constant Field Values
-
MIN_MERGE_INFO_FORMAT
public static final int MIN_MERGE_INFO_FORMAT
- See Also:
- Constant Field Values
-
MIN_REP_SHARING_FORMAT
public static final int MIN_REP_SHARING_FORMAT
- See Also:
- Constant Field Values
-
MIN_PACKED_FORMAT
public static final int MIN_PACKED_FORMAT
- See Also:
- Constant Field Values
-
MIN_KIND_IN_CHANGED_FORMAT
public static final int MIN_KIND_IN_CHANGED_FORMAT
- See Also:
- Constant Field Values
-
MIN_PACKED_REVPROP_SQLITE_DEV_FORMAT
public static final int MIN_PACKED_REVPROP_SQLITE_DEV_FORMAT
- See Also:
- Constant Field Values
-
MIN_PACKED_REVPROP_FORMAT
public static final int MIN_PACKED_REVPROP_FORMAT
- See Also:
- Constant Field Values
-
MIN_LOG_ADDRESSING_MINIMAL_FORMAT
public static final int MIN_LOG_ADDRESSING_MINIMAL_FORMAT
- See Also:
- Constant Field Values
-
MIN_MERGEINFO_IN_CHANGED_FORMAT
public static final int MIN_MERGEINFO_IN_CHANGED_FORMAT
- See Also:
- Constant Field Values
-
REVISION_PROPERTIES_DB
public static final java.lang.String REVISION_PROPERTIES_DB
- See Also:
- Constant Field Values
-
REVISION_PROPERTIES_TABLE
public static final java.lang.String REVISION_PROPERTIES_TABLE
- See Also:
- Constant Field Values
-
MIN_UNPACKED_REV
public static final java.lang.String MIN_UNPACKED_REV
- See Also:
- Constant Field Values
-
DB_FORMAT_PRE_17_USE_AS_DEFAULT
public static final boolean DB_FORMAT_PRE_17_USE_AS_DEFAULT
- See Also:
- Constant Field Values
-
-
Method Detail
-
setHooksEnabled
public void setHooksEnabled(boolean enabled)
-
isHooksEnabled
public boolean isHooksEnabled()
-
getDBFormat
public int getDBFormat()
-
getMaxFilesPerDirectory
public long getMaxFilesPerDirectory()
-
getReposFormat
public int getReposFormat()
-
isUseLogAddressing
public boolean isUseLogAddressing()
-
open
public void open() throws SVNException- Throws:
SVNException
-
close
public void close() throws SVNException- Throws:
SVNException
-
openForRecovery
public void openForRecovery() throws SVNException- Throws:
SVNException
-
openRoot
public void openRoot() throws SVNException- Throws:
SVNException
-
openDB
public void openDB() throws SVNException- Throws:
SVNException
-
getFSType
public java.lang.String getFSType() throws SVNException- Throws:
SVNException
-
readDBFormat
public int readDBFormat() throws SVNException- Throws:
SVNException
-
getUUID
public java.lang.String getUUID() throws SVNException- Throws:
SVNException
-
getDBRoot
public java.io.File getDBRoot()
-
getWriteLockFile
public java.io.File getWriteLockFile()
-
getUUIDFile
public java.io.File getUUIDFile()
-
getDBRevsDir
public java.io.File getDBRevsDir()
-
getDBLocksDir
public java.io.File getDBLocksDir()
-
getFSTypeFile
public java.io.File getFSTypeFile()
-
getTransactionsParentDir
public java.io.File getTransactionsParentDir()
-
getRepositoryRoot
public java.io.File getRepositoryRoot()
-
getRevisionPropertiesRoot
public java.io.File getRevisionPropertiesRoot()
-
getRepositoryFormatFile
public java.io.File getRepositoryFormatFile()
-
getDBFormatFile
public java.io.File getDBFormatFile()
-
getNodeOriginsDir
public java.io.File getNodeOriginsDir()
-
getCurrentFile
public java.io.File getCurrentFile()
-
getRepositoryCacheFile
public java.io.File getRepositoryCacheFile()
-
getDBLogsLockFile
public java.io.File getDBLogsLockFile() throws SVNException- Throws:
SVNException
-
getDatedRevision
public long getDatedRevision(java.util.Date date) throws SVNException- Throws:
SVNException
-
getYoungestRevision
public long getYoungestRevision() throws SVNException- Throws:
SVNException
-
getMinUnpackedRev
public long getMinUnpackedRev() throws SVNException- Throws:
SVNException
-
upgrade
public void upgrade() throws SVNException- Throws:
SVNException
-
writeDBFormat
public void writeDBFormat(int format, long maxFilesPerDir, boolean overwrite) throws SVNException- Throws:
SVNException
-
getRevisionProperties
public SVNProperties getRevisionProperties(long revision) throws SVNException
- Throws:
SVNException
-
createRevisionRoot
public FSRevisionRoot createRevisionRoot(long revision) throws SVNException
- Throws:
SVNException
-
createTransactionRoot
public FSTransactionRoot createTransactionRoot(FSTransactionInfo txn) throws SVNException
- Throws:
SVNException
-
openTxn
public FSTransactionInfo openTxn(java.lang.String txnName) throws SVNException
- Throws:
SVNException
-
getRevisionNode
public FSRevisionNode getRevisionNode(FSID id) throws SVNException
- Throws:
SVNException
-
getDirContents
public java.util.Map getDirContents(FSRevisionNode revNode) throws SVNException
- Throws:
SVNException
-
getProperties
public SVNProperties getProperties(FSRevisionNode revNode) throws SVNException
- Throws:
SVNException
-
getNextRevisionIDs
public java.lang.String[] getNextRevisionIDs() throws SVNException- Throws:
SVNException
-
getAndIncrementTxnKey
public java.lang.String getAndIncrementTxnKey() throws SVNException- Throws:
SVNException
-
listTransactions
public java.util.Map listTransactions()
-
getNewRevisionFile
public java.io.File getNewRevisionFile(long newRevision)
-
getNewRevisionPropertiesFile
public java.io.File getNewRevisionPropertiesFile(long newRevision)
-
getTransactionDir
public java.io.File getTransactionDir(java.lang.String txnID)
-
setYoungestRevisionCache
public void setYoungestRevisionCache(long revision)
-
setUUID
public void setUUID(java.lang.String uuid) throws SVNException- Throws:
SVNException
-
getRevisionPropertiesFile
public java.io.File getRevisionPropertiesFile(long revision, boolean returnMissing) throws SVNException- Throws:
SVNException
-
openAndSeekRepresentation
public FSFile openAndSeekRepresentation(FSRepresentation rep) throws SVNException
- Throws:
SVNException
-
getNextIDsFile
public java.io.File getNextIDsFile(java.lang.String txnID)
-
writeNextIDs
public void writeNextIDs(java.lang.String txnID, java.lang.String nodeID, java.lang.String copyID) throws SVNException- Throws:
SVNException
-
changeTransactionProperties
public void changeTransactionProperties(java.lang.String txnId, SVNProperties txnProperties) throws SVNException- Throws:
SVNException
-
setTransactionProperty
public void setTransactionProperty(java.lang.String txnID, java.lang.String name, SVNPropertyValue propertyValue) throws SVNException- Throws:
SVNException
-
setRevisionProperty
public void setRevisionProperty(long revision, java.lang.String propertyName, SVNPropertyValue propertyValue) throws SVNException- Throws:
SVNException
-
getRevPropPackSize
protected long getRevPropPackSize()
-
isRepSharingAllowed
public boolean isRepSharingAllowed()
-
getBlockSize
public long getBlockSize()
-
getL2PPageSize
public long getL2PPageSize()
-
getP2LPageSize
public long getP2LPageSize()
-
getTransactionProperties
public SVNProperties getTransactionProperties(java.lang.String txnID) throws SVNException
- Throws:
SVNException
-
getTransactionPropertiesFile
public java.io.File getTransactionPropertiesFile(java.lang.String txnID)
-
getTransactionProtoRevsDir
public java.io.File getTransactionProtoRevsDir()
-
getTransactionProtoRevFile
public java.io.File getTransactionProtoRevFile(java.lang.String txnID)
-
getTransactionProtoRevLockFile
public java.io.File getTransactionProtoRevLockFile(java.lang.String txnID)
-
purgeTxn
public void purgeTxn(java.lang.String txnID) throws SVNException- Throws:
SVNException
-
createNewTxnNodeRevisionFromRevision
public void createNewTxnNodeRevisionFromRevision(java.lang.String txnID, FSRevisionNode sourceNode) throws SVNException- Throws:
SVNException
-
putTxnRevisionNode
public void putTxnRevisionNode(FSID id, FSRevisionNode revNode) throws SVNException
- Throws:
SVNException
-
getTransactionRevNodeFile
public java.io.File getTransactionRevNodeFile(FSID id)
-
writeTxnNodeRevision
public void writeTxnNodeRevision(java.io.OutputStream revNodeFile, FSRevisionNode revNode) throws java.io.IOException- Throws:
java.io.IOException
-
getLock
public SVNLock getLock(java.lang.String repositoryPath, boolean haveWriteLock, boolean throwError) throws SVNException
- Throws:
SVNException
-
deleteLock
public void deleteLock(SVNLock lock) throws SVNException
- Throws:
SVNException
-
walkDigestFiles
public void walkDigestFiles(java.io.File digestFile, ISVNLockHandler getLocksHandler, boolean haveWriteLock) throws SVNException- Throws:
SVNException
-
getLockHelper
public SVNLock getLockHelper(java.lang.String repositoryPath, boolean haveWriteLock) throws SVNException
- Throws:
SVNException
-
fetchLockFromDigestFile
public SVNLock fetchLockFromDigestFile(java.io.File digestFile, java.lang.String repositoryPath, java.util.Collection children) throws SVNException
- Throws:
SVNException
-
getDigestFileFromRepositoryPath
public java.io.File getDigestFileFromRepositoryPath(java.lang.String repositoryPath) throws SVNException- Throws:
SVNException
-
getDigestFromRepositoryPath
public java.lang.String getDigestFromRepositoryPath(java.lang.String repositoryPath) throws SVNException- Throws:
SVNException
-
unlockPath
public void unlockPath(java.lang.String path, java.lang.String token, java.lang.String username, boolean breakLock, boolean enableHooks) throws SVNException- Throws:
SVNException
-
lockPath
public SVNLock lockPath(java.lang.String path, java.lang.String token, java.lang.String username, java.lang.String comment, java.util.Date expirationDate, long currentRevision, boolean stealLock, boolean isDAVComment) throws SVNException
- Throws:
SVNException
-
compoundMetaProperties
public SVNProperties compoundMetaProperties(long revision) throws SVNException
- Throws:
SVNException
-
getDeletedRevision
public long getDeletedRevision(java.lang.String path, long startRev, long endRev) throws SVNException- Throws:
SVNException
-
getPreviousLocation
public SVNLocationEntry getPreviousLocation(java.lang.String path, long revision, long[] appearedRevision) throws SVNException
- Throws:
SVNException
-
getNodeOrigin
public java.lang.String getNodeOrigin(java.lang.String nodeID) throws SVNException- Throws:
SVNException
-
setNodeOrigin
public void setNodeOrigin(java.lang.String nodeID, FSID nodeRevisionID) throws SVNException- Throws:
SVNException
-
supportsMergeInfo
public boolean supportsMergeInfo()
-
readOptions
public void readOptions(FSFile formatFile, int formatNumber) throws SVNException
- Throws:
SVNException
-
getRepositoryCacheManager
public IFSRepresentationCacheManager getRepositoryCacheManager()
-
findRepositoryRoot
public static java.io.File findRepositoryRoot(java.io.File path)
-
findRepositoryRoot
public static java.lang.String findRepositoryRoot(java.lang.String host, java.lang.String path)
-
getDefaultMaxFilesPerDirectory
public static long getDefaultMaxFilesPerDirectory()
-
setDefaultMaxFilesPerDirectory
public static void setDefaultMaxFilesPerDirectory(long maxFilesPerDirectory)
-
isPackedRevision
public boolean isPackedRevision(long revision)
-
getPackedBaseRevision
public long getPackedBaseRevision(long revision)
-
getNodeOriginFile
protected java.io.File getNodeOriginFile(java.lang.String nodeID)
-
getTransactionRevisionPrototypeFile
protected FSFile getTransactionRevisionPrototypeFile(java.lang.String txnID)
-
getTransactionChangesFile
protected FSFile getTransactionChangesFile(java.lang.String txnID)
-
getTransactionRevisionNodeChildrenFile
protected FSFile getTransactionRevisionNodeChildrenFile(FSID txnID)
-
getRevisionFSFile
protected FSFile getRevisionFSFile(long revision) throws SVNException
- Throws:
SVNException
-
getPackOrRevisionFSFile
protected FSFile getPackOrRevisionFSFile(long revision) throws SVNException
- Throws:
SVNException
-
getAbsoluteRevisionPath
protected java.io.File getAbsoluteRevisionPath(long revision) throws SVNException- Throws:
SVNException
-
getTransactionRevisionNodePropertiesFile
protected FSFile getTransactionRevisionNodePropertiesFile(FSID id)
-
getPackedRevPath
protected java.io.File getPackedRevPath(long revision, java.lang.String kind) throws SVNException- Throws:
SVNException
-
getPackedRevPropsShardPath
protected java.io.File getPackedRevPropsShardPath(long revision) throws SVNException- Throws:
SVNException
-
getPackDir
protected java.io.File getPackDir(long revision)
-
getPackFile
protected java.io.File getPackFile(long revision)
-
getManifestFile
protected java.io.File getManifestFile(long revision)
-
getRevisionFile
protected java.io.File getRevisionFile(long revision) throws SVNException- Throws:
SVNException
-
getMinUnpackedRevFile
protected java.io.File getMinUnpackedRevFile()
-
getTransactionCurrentFile
protected java.io.File getTransactionCurrentFile()
-
getTransactionCurrentLockFile
protected java.io.File getTransactionCurrentLockFile()
-
getConfigFile
public java.io.File getConfigFile()
-
writeCurrentFile
protected void writeCurrentFile(long revision, java.lang.String nextNodeID, java.lang.String nextCopyID) throws SVNException, java.io.IOException- Throws:
SVNExceptionjava.io.IOException
-
getPackedOffset
protected long getPackedOffset(long revision) throws SVNException- Throws:
SVNException
-
lookupOffsetInIndex
protected long lookupOffsetInIndex(FSFile file, long revision, long itemIndex) throws SVNException
- Throws:
SVNException
-
lookupOffsetInProtoIndex
protected long lookupOffsetInProtoIndex(FSFile file, java.lang.String txnId, long itemIndex) throws SVNException
- Throws:
SVNException
-
getRevisionPropertiesDbPath
public java.io.File getRevisionPropertiesDbPath()
-
getMinUnpackedRevPropPath
public java.io.File getMinUnpackedRevPropPath()
-
updateMinUnpackedRevProp
public void updateMinUnpackedRevProp() throws SVNException- Throws:
SVNException
-
getMinUnpackedRevProp
public long getMinUnpackedRevProp() throws SVNException- Throws:
SVNException
-
isCompressPackedRevprops
public boolean isCompressPackedRevprops()
-
-