Class FSTransactionRoot
java.lang.Object
org.tmatesoft.svn.core.internal.io.fs.FSRoot
org.tmatesoft.svn.core.internal.io.fs.FSTransactionRoot
- Version:
- 1.3
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate Fileprivate intprivate Stringprivate Filestatic final intstatic final intFields inherited from class org.tmatesoft.svn.core.internal.io.fs.FSRoot
myRootRevisionNode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringlongallocateItemIndex(long offset) static FSTransactionInfobeginTransaction(long baseRevision, int flags, FSFS owner) static FSTransactionInfobeginTransactionForCommit(long baseRevision, SVNProperties revisionProperties, FSFS owner) cloneChild(FSRevisionNode parent, String parentPath, String childName, String copyId, boolean isParentCopyRoot) private static StringcreatePre15TxnDir(long revision, FSFS owner) createSuccessor(FSID oldId, FSRevisionNode newRevNode, String copyId) private static FSTransactionInfoprivate static StringcreateTxnDir(long revision, FSFS owner) voiddeleteEntry(FSRevisionNode parent, String entryName) private voidgetCopyInheritance(FSParentPath child) longgetTxn()intgetTxnID()voidincrementMergeInfoCount(FSRevisionNode node, long increment) String[]private voidvoidsetEntry(FSRevisionNode parentRevNode, String entryName, FSID entryId, SVNNodeKind kind) voidsetProplist(FSRevisionNode node, SVNProperties properties) voidsetTxnFlags(int txnFlags) voidstoreL2PIndexEntry(long offset, long itemIndex) voidstoreP2LIndexEntry(FSP2LEntry entry) unparseDirEntries(Map entries) voidwriteChangeEntry(OutputStream changesFile, FSPathChange pathChange, boolean includeNodeKind) private voidwriteChanges(CountingOutputStream protoFile, Map changedPaths, boolean includeNodeKind, boolean terminateList) longwriteFinalChangedPathInfo(CountingOutputStream protoFile) voidwriteFinalCurrentFile(long newRevision, String startNodeId, String startCopyId) writeFinalRevision(FSID newId, CountingOutputStream protoFile, long revision, FSID id, String startNodeId, String startCopyId, Collection<FSRepresentation> representations, boolean atRoot) private longwriteHashRepresentation(FSRepresentation representation, SVNProperties hashContents, CountingOutputStream protoFile, MessageDigest digest, FSP2LProtoIndex.ItemType itemType) 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 Details
-
SVN_FS_TXN_CHECK_OUT_OF_DATENESS
public static final int SVN_FS_TXN_CHECK_OUT_OF_DATENESS- See Also:
-
SVN_FS_TXN_CHECK_LOCKS
public static final int SVN_FS_TXN_CHECK_LOCKS- See Also:
-
myTxnID
-
myTxnFlags
private int myTxnFlags -
myTxnChangesFile
-
myTxnRevFile
-
myBaseRevision
private long myBaseRevision
-
-
Constructor Details
-
FSTransactionRoot
-
-
Method Details
-
getRevision
public long getRevision()- Specified by:
getRevisionin classFSRoot
-
getCopyInheritance
- Specified by:
getCopyInheritancein classFSRoot- Throws:
SVNException
-
getRootRevisionNode
- Specified by:
getRootRevisionNodein classFSRoot- Throws:
SVNException
-
getTxnBaseRootNode
- Throws:
SVNException
-
getTxn
- Throws:
SVNException
-
getChangedPaths
- Specified by:
getChangedPathsin classFSRoot- Throws:
SVNException
-
getTxnFlags
public int getTxnFlags() -
setTxnFlags
public void setTxnFlags(int txnFlags) -
getTxnID
-
unparseDirEntries
-
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
-
createTxn
- Throws:
SVNException
-
createTxnDir
- Throws:
SVNException
-
createPre15TxnDir
- Throws:
SVNException
-
deleteEntry
- Throws:
SVNException
-
incrementMergeInfoCount
- Throws:
SVNException
-
deleteEntryIfMutable
- Throws:
SVNException
-
removeRevisionNode
- Throws:
SVNException
-
setProplist
- Throws:
SVNException
-
createSuccessor
public FSID createSuccessor(FSID oldId, FSRevisionNode newRevNode, String copyId) throws SVNException - Throws:
SVNException
-
setEntry
public void setEntry(FSRevisionNode parentRevNode, String entryName, FSID entryId, SVNNodeKind kind) throws SVNException - Throws:
SVNException
-
writeChangeEntry
public void writeChangeEntry(OutputStream changesFile, FSPathChange pathChange, boolean includeNodeKind) throws SVNException, IOException - Throws:
SVNExceptionIOException
-
writeFinalChangedPathInfo
public long writeFinalChangedPathInfo(CountingOutputStream protoFile) throws SVNException, IOException - Throws:
SVNExceptionIOException
-
writeChanges
private void writeChanges(CountingOutputStream protoFile, Map changedPaths, boolean includeNodeKind, boolean terminateList) throws SVNException, IOException - Throws:
SVNExceptionIOException
-
readNextIDs
- Throws:
SVNException
-
writeFinalCurrentFile
public void writeFinalCurrentFile(long newRevision, String startNodeId, String startCopyId) throws SVNException, IOException - Throws:
SVNExceptionIOException
-
writeFinalRevision
public FSID writeFinalRevision(FSID newId, CountingOutputStream protoFile, long revision, FSID id, String startNodeId, String startCopyId, Collection<FSRepresentation> representations, boolean atRoot) throws SVNException, IOException - Throws:
SVNExceptionIOException
-
cloneChild
public FSRevisionNode cloneChild(FSRevisionNode parent, String parentPath, String childName, String copyId, boolean isParentCopyRoot) throws SVNException - Throws:
SVNException
-
getTransactionRevNodePropsFile
-
getTransactionRevNodeChildrenFile
-
getWritableTransactionProtoRevFile
- Throws:
SVNException
-
getTransactionChangesFile
- Throws:
SVNException
-
getNewTxnNodeId
- Throws:
SVNException
-
allocateItemIndex
- Throws:
SVNException
-
storeL2PIndexEntry
- Throws:
SVNException
-
storeP2LIndexEntry
- Throws:
SVNException
-
writeHashRepresentation
private long writeHashRepresentation(FSRepresentation representation, SVNProperties hashContents, CountingOutputStream protoFile, MessageDigest digest, FSP2LProtoIndex.ItemType itemType) throws IOException, SVNException - Throws:
IOExceptionSVNException
-
addKeys
-