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 long
private java.io.File
private int
private java.lang.String
private java.io.File
static final int
static final int
Fields inherited from class org.tmatesoft.svn.core.internal.io.fs.FSRoot
myRootRevisionNode
-
Constructor Summary
ConstructorsConstructorDescriptionFSTransactionRoot
(FSFS owner, java.lang.String txnID, long baseRevision, int flags) -
Method Summary
Modifier and TypeMethodDescriptionprivate static java.lang.String
addKeys
(java.lang.String key1, java.lang.String key2) long
allocateItemIndex
(long offset) static FSTransactionInfo
beginTransaction
(long baseRevision, int flags, FSFS owner) static FSTransactionInfo
beginTransactionForCommit
(long baseRevision, SVNProperties revisionProperties, FSFS owner) cloneChild
(FSRevisionNode parent, java.lang.String parentPath, java.lang.String childName, java.lang.String copyId, boolean isParentCopyRoot) private static java.lang.String
createPre15TxnDir
(long revision, FSFS owner) createSuccessor
(FSID oldId, FSRevisionNode newRevNode, java.lang.String copyId) private static FSTransactionInfo
private static java.lang.String
createTxnDir
(long revision, FSFS owner) void
deleteEntry
(FSRevisionNode parent, java.lang.String entryName) private void
java.util.Map
getCopyInheritance
(FSParentPath child) java.lang.String
long
java.io.File
java.io.File
java.io.File
getTxn()
int
java.lang.String
getTxnID()
java.io.File
void
incrementMergeInfoCount
(FSRevisionNode node, long increment) java.lang.String[]
private void
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) unparseDirEntries
(java.util.Map entries) void
writeChangeEntry
(java.io.OutputStream changesFile, FSPathChange pathChange, boolean includeNodeKind) private void
writeChanges
(CountingOutputStream protoFile, java.util.Map changedPaths, boolean includeNodeKind, boolean terminateList) long
writeFinalChangedPathInfo
(CountingOutputStream protoFile) void
writeFinalCurrentFile
(long newRevision, java.lang.String startNodeId, java.lang.String startCopyId) writeFinalRevision
(FSID newId, CountingOutputStream protoFile, long revision, FSID id, java.lang.String startNodeId, java.lang.String startCopyId, java.util.Collection<FSRepresentation> representations, boolean atRoot) private long
writeHashRepresentation
(FSRepresentation representation, SVNProperties hashContents, CountingOutputStream protoFile, java.security.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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
private java.lang.String myTxnID -
myTxnFlags
private int myTxnFlags -
myTxnChangesFile
private java.io.File myTxnChangesFile -
myTxnRevFile
private java.io.File myTxnRevFile -
myBaseRevision
private long myBaseRevision
-
-
Constructor Details
-
FSTransactionRoot
-
-
Method Details
-
getRevision
public long getRevision()- Specified by:
getRevision
in classFSRoot
-
getCopyInheritance
- Specified by:
getCopyInheritance
in classFSRoot
- Throws:
SVNException
-
getRootRevisionNode
- Specified by:
getRootRevisionNode
in classFSRoot
- Throws:
SVNException
-
getTxnBaseRootNode
- Throws:
SVNException
-
getTxn
- Throws:
SVNException
-
getChangedPaths
- Specified by:
getChangedPaths
in classFSRoot
- Throws:
SVNException
-
getTxnFlags
public int getTxnFlags() -
setTxnFlags
public void setTxnFlags(int txnFlags) -
getTxnID
public java.lang.String 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, 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
-
writeChanges
private void writeChanges(CountingOutputStream protoFile, java.util.Map changedPaths, boolean includeNodeKind, boolean terminateList) throws SVNException, java.io.IOException - Throws:
SVNException
java.io.IOException
-
readNextIDs
- 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
-
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, java.security.MessageDigest digest, FSP2LProtoIndex.ItemType itemType) throws java.io.IOException, SVNException - Throws:
java.io.IOException
SVNException
-
addKeys
private static java.lang.String addKeys(java.lang.String key1, java.lang.String key2)
-