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 File
private int
private String
private File
static final int
static final int
Fields inherited from class org.tmatesoft.svn.core.internal.io.fs.FSRoot
myRootRevisionNode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static String
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, String parentPath, String childName, String copyId, boolean isParentCopyRoot) private static String
createPre15TxnDir
(long revision, FSFS owner) createSuccessor
(FSID oldId, FSRevisionNode newRevNode, String copyId) private static FSTransactionInfo
private static String
createTxnDir
(long revision, FSFS owner) void
deleteEntry
(FSRevisionNode parent, String entryName) private void
getCopyInheritance
(FSParentPath child) long
getTxn()
int
getTxnID()
void
incrementMergeInfoCount
(FSRevisionNode node, long increment) String[]
private void
void
setEntry
(FSRevisionNode parentRevNode, 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
(Map entries) void
writeChangeEntry
(OutputStream changesFile, FSPathChange pathChange, boolean includeNodeKind) private void
writeChanges
(CountingOutputStream protoFile, Map changedPaths, boolean includeNodeKind, boolean terminateList) long
writeFinalChangedPathInfo
(CountingOutputStream protoFile) void
writeFinalCurrentFile
(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 long
writeHashRepresentation
(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:
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
-
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:
SVNException
IOException
-
writeFinalChangedPathInfo
public long writeFinalChangedPathInfo(CountingOutputStream protoFile) throws SVNException, IOException - Throws:
SVNException
IOException
-
writeChanges
private void writeChanges(CountingOutputStream protoFile, Map changedPaths, boolean includeNodeKind, boolean terminateList) throws SVNException, IOException - Throws:
SVNException
IOException
-
readNextIDs
- Throws:
SVNException
-
writeFinalCurrentFile
public void writeFinalCurrentFile(long newRevision, String startNodeId, String startCopyId) throws SVNException, IOException - Throws:
SVNException
IOException
-
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:
SVNException
IOException
-
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:
IOException
SVNException
-
addKeys
-