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 java.io.Fileprivate intprivate java.lang.Stringprivate java.io.Filestatic final intstatic final intFields 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.StringaddKeys(java.lang.String key1, java.lang.String key2) longallocateItemIndex(long offset) static FSTransactionInfobeginTransaction(long baseRevision, int flags, FSFS owner) static FSTransactionInfobeginTransactionForCommit(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.StringcreatePre15TxnDir(long revision, FSFS owner) createSuccessor(FSID oldId, FSRevisionNode newRevNode, java.lang.String copyId) private static FSTransactionInfoprivate static java.lang.StringcreateTxnDir(long revision, FSFS owner) voiddeleteEntry(FSRevisionNode parent, java.lang.String entryName) private voidjava.util.MapgetCopyInheritance(FSParentPath child) java.lang.Stringlongjava.io.Filejava.io.Filejava.io.FilegetTxn()intjava.lang.StringgetTxnID()java.io.FilevoidincrementMergeInfoCount(FSRevisionNode node, long increment) java.lang.String[]private voidvoidsetEntry(FSRevisionNode parentRevNode, java.lang.String entryName, FSID entryId, SVNNodeKind kind) voidsetProplist(FSRevisionNode node, SVNProperties properties) voidsetTxnFlags(int txnFlags) voidstoreL2PIndexEntry(long offset, long itemIndex) voidstoreP2LIndexEntry(FSP2LEntry entry) unparseDirEntries(java.util.Map entries) voidwriteChangeEntry(java.io.OutputStream changesFile, FSPathChange pathChange, boolean includeNodeKind) private voidwriteChanges(CountingOutputStream protoFile, java.util.Map changedPaths, boolean includeNodeKind, boolean terminateList) longwriteFinalChangedPathInfo(CountingOutputStream protoFile) voidwriteFinalCurrentFile(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 longwriteHashRepresentation(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, writeIndexDataMethods 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:
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
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:
SVNExceptionjava.io.IOException
-
writeFinalChangedPathInfo
public long writeFinalChangedPathInfo(CountingOutputStream protoFile) throws SVNException, java.io.IOException - Throws:
SVNExceptionjava.io.IOException
-
writeChanges
private void writeChanges(CountingOutputStream protoFile, java.util.Map changedPaths, boolean includeNodeKind, boolean terminateList) throws SVNException, java.io.IOException - Throws:
SVNExceptionjava.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:
SVNExceptionjava.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:
SVNExceptionjava.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.IOExceptionSVNException
-
addKeys
private static java.lang.String addKeys(java.lang.String key1, java.lang.String key2)
-