Class FSTransactionRoot
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.io.fs.FSRoot
-
- org.tmatesoft.svn.core.internal.io.fs.FSTransactionRoot
-
public class FSTransactionRoot extends FSRoot
- Version:
- 1.3
- Author:
- TMate Software Ltd.
-
-
Field Summary
Fields Modifier and Type Field Description static int
SVN_FS_TXN_CHECK_LOCKS
static int
SVN_FS_TXN_CHECK_OUT_OF_DATENESS
-
Fields inherited from class org.tmatesoft.svn.core.internal.io.fs.FSRoot
myRootRevisionNode
-
-
Constructor Summary
Constructors Constructor Description FSTransactionRoot(FSFS owner, java.lang.String txnID, long baseRevision, int flags)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
allocateItemIndex(long offset)
static FSTransactionInfo
beginTransaction(long baseRevision, int flags, FSFS owner)
static FSTransactionInfo
beginTransactionForCommit(long baseRevision, SVNProperties revisionProperties, FSFS owner)
FSRevisionNode
cloneChild(FSRevisionNode parent, java.lang.String parentPath, java.lang.String childName, java.lang.String copyId, boolean isParentCopyRoot)
FSID
createSuccessor(FSID oldId, FSRevisionNode newRevNode, java.lang.String copyId)
void
deleteEntry(FSRevisionNode parent, java.lang.String entryName)
java.util.Map
getChangedPaths()
FSCopyInheritance
getCopyInheritance(FSParentPath child)
java.lang.String
getNewTxnNodeId()
long
getRevision()
FSRevisionNode
getRootRevisionNode()
java.io.File
getTransactionChangesFile()
java.io.File
getTransactionRevNodeChildrenFile(FSID id)
java.io.File
getTransactionRevNodePropsFile(FSID id)
FSTransactionInfo
getTxn()
FSRevisionNode
getTxnBaseRootNode()
int
getTxnFlags()
java.lang.String
getTxnID()
java.io.File
getWritableTransactionProtoRevFile()
void
incrementMergeInfoCount(FSRevisionNode node, long increment)
java.lang.String[]
readNextIDs()
void
setEntry(FSRevisionNode parentRevNode, java.lang.String entryName, FSID entryId, SVNNodeKind kind)
void
setProplist(FSRevisionNode node, SVNProperties properties)
void
setTxnFlags(int txnFlags)
void
storeL2PIndexEntry(long offset, long itemIndex)
void
storeP2LIndexEntry(FSP2LEntry entry)
SVNProperties
unparseDirEntries(java.util.Map entries)
void
writeChangeEntry(java.io.OutputStream changesFile, FSPathChange pathChange, boolean includeNodeKind)
long
writeFinalChangedPathInfo(CountingOutputStream protoFile)
void
writeFinalCurrentFile(long newRevision, java.lang.String startNodeId, java.lang.String startCopyId)
FSID
writeFinalRevision(FSID newId, CountingOutputStream protoFile, long revision, FSID id, java.lang.String startNodeId, java.lang.String startCopyId, java.util.Collection<FSRepresentation> representations, boolean atRoot)
-
Methods inherited from class org.tmatesoft.svn.core.internal.io.fs.FSRoot
checkNodeKind, detectChanged, fetchAllChanges, fetchRevNodeFromCache, getFileSize, getFileStreamForPath, getOwner, getRevisionNode, isUseLogAddressing, openPath, putRevNodeToCache, removeRevNodeFromCache, writeIndexData
-
-
-
-
Field Detail
-
SVN_FS_TXN_CHECK_OUT_OF_DATENESS
public static final int SVN_FS_TXN_CHECK_OUT_OF_DATENESS
- See Also:
- Constant Field Values
-
SVN_FS_TXN_CHECK_LOCKS
public static final int SVN_FS_TXN_CHECK_LOCKS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FSTransactionRoot
public FSTransactionRoot(FSFS owner, java.lang.String txnID, long baseRevision, int flags)
-
-
Method Detail
-
getRevision
public long getRevision()
- Specified by:
getRevision
in classFSRoot
-
getCopyInheritance
public FSCopyInheritance getCopyInheritance(FSParentPath child) throws SVNException
- Specified by:
getCopyInheritance
in classFSRoot
- Throws:
SVNException
-
getRootRevisionNode
public FSRevisionNode getRootRevisionNode() throws SVNException
- Specified by:
getRootRevisionNode
in classFSRoot
- Throws:
SVNException
-
getTxnBaseRootNode
public FSRevisionNode getTxnBaseRootNode() throws SVNException
- Throws:
SVNException
-
getTxn
public FSTransactionInfo getTxn() throws SVNException
- Throws:
SVNException
-
getChangedPaths
public java.util.Map getChangedPaths() throws SVNException
- Specified by:
getChangedPaths
in classFSRoot
- Throws:
SVNException
-
getTxnFlags
public int getTxnFlags()
-
setTxnFlags
public void setTxnFlags(int txnFlags)
-
getTxnID
public java.lang.String getTxnID()
-
unparseDirEntries
public SVNProperties unparseDirEntries(java.util.Map entries)
-
beginTransactionForCommit
public static FSTransactionInfo beginTransactionForCommit(long baseRevision, SVNProperties revisionProperties, FSFS owner) throws SVNException
- Throws:
SVNException
-
beginTransaction
public static FSTransactionInfo beginTransaction(long baseRevision, int flags, FSFS owner) throws SVNException
- Throws:
SVNException
-
deleteEntry
public void deleteEntry(FSRevisionNode parent, java.lang.String entryName) throws SVNException
- Throws:
SVNException
-
incrementMergeInfoCount
public void incrementMergeInfoCount(FSRevisionNode node, long increment) throws SVNException
- Throws:
SVNException
-
setProplist
public void setProplist(FSRevisionNode node, SVNProperties properties) throws SVNException
- Throws:
SVNException
-
createSuccessor
public FSID createSuccessor(FSID oldId, FSRevisionNode newRevNode, java.lang.String copyId) throws SVNException
- Throws:
SVNException
-
setEntry
public void setEntry(FSRevisionNode parentRevNode, java.lang.String entryName, FSID entryId, SVNNodeKind kind) throws SVNException
- Throws:
SVNException
-
writeChangeEntry
public void writeChangeEntry(java.io.OutputStream changesFile, FSPathChange pathChange, boolean includeNodeKind) throws SVNException, java.io.IOException
- Throws:
SVNException
java.io.IOException
-
writeFinalChangedPathInfo
public long writeFinalChangedPathInfo(CountingOutputStream protoFile) throws SVNException, java.io.IOException
- Throws:
SVNException
java.io.IOException
-
readNextIDs
public java.lang.String[] readNextIDs() throws SVNException
- Throws:
SVNException
-
writeFinalCurrentFile
public void writeFinalCurrentFile(long newRevision, java.lang.String startNodeId, java.lang.String startCopyId) throws SVNException, java.io.IOException
- Throws:
SVNException
java.io.IOException
-
writeFinalRevision
public FSID writeFinalRevision(FSID newId, CountingOutputStream protoFile, long revision, FSID id, java.lang.String startNodeId, java.lang.String startCopyId, java.util.Collection<FSRepresentation> representations, boolean atRoot) throws SVNException, java.io.IOException
- Throws:
SVNException
java.io.IOException
-
cloneChild
public FSRevisionNode cloneChild(FSRevisionNode parent, java.lang.String parentPath, java.lang.String childName, java.lang.String copyId, boolean isParentCopyRoot) throws SVNException
- Throws:
SVNException
-
getTransactionRevNodePropsFile
public java.io.File getTransactionRevNodePropsFile(FSID id)
-
getTransactionRevNodeChildrenFile
public java.io.File getTransactionRevNodeChildrenFile(FSID id)
-
getWritableTransactionProtoRevFile
public java.io.File getWritableTransactionProtoRevFile() throws SVNException
- Throws:
SVNException
-
getTransactionChangesFile
public java.io.File getTransactionChangesFile() throws SVNException
- Throws:
SVNException
-
getNewTxnNodeId
public java.lang.String getNewTxnNodeId() throws SVNException
- Throws:
SVNException
-
allocateItemIndex
public long allocateItemIndex(long offset) throws SVNException
- Throws:
SVNException
-
storeL2PIndexEntry
public void storeL2PIndexEntry(long offset, long itemIndex) throws SVNException
- Throws:
SVNException
-
storeP2LIndexEntry
public void storeP2LIndexEntry(FSP2LEntry entry) throws SVNException
- Throws:
SVNException
-
-