Class FSCommitter
java.lang.Object
org.tmatesoft.svn.core.internal.io.fs.FSCommitter
public class FSCommitter
extends java.lang.Object
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate java.lang.Stringprivate java.util.Map<java.lang.String,java.lang.String> private FSFSprivate java.util.Collection<java.lang.String>private FSTransactionInfoprivate FSTransactionRootprivate static boolean -
Constructor Summary
ConstructorsConstructorDescriptionFSCommitter(FSFS fsfs, FSTransactionRoot txnRoot, FSTransactionInfo txn, java.util.Collection<java.lang.String> lockTokens, java.lang.String author) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidabortTransaction(FSFS fsfs, java.lang.String txnId) voidaddChange(java.lang.String path, FSID id, FSPathChangeKind changeKind, boolean textModified, boolean propsModified, boolean mergeInfoModified, long copyFromRevision, java.lang.String copyFromPath, SVNNodeKind kind) voidallowLockedOperation(FSFS fsfs, java.lang.String path, java.lang.String username, java.util.Collection<java.lang.String> lockTokens, boolean recursive, boolean haveWriteLock) voidchangeNodeProperty(java.lang.String path, java.lang.String name, SVNPropertyValue propValue) private voidcommit(java.lang.String startNodeId, java.lang.String startCopyId, long newRevision, java.io.OutputStream protoFileOS, FSID newRootId, FSTransactionRoot txnRoot, java.io.File revisionPrototypeFile, long offset, java.util.Collection<FSRepresentation> representations) private longcommit(java.util.Collection<FSRepresentation> representations) longcommitTxn(boolean runPreCommitHook, boolean runPostCommitHook, SVNErrorMessage[] postCommitHookError, java.lang.StringBuffer conflictPath) private voidcopy(FSRevisionNode toNode, java.lang.String entryName, FSRevisionNode fromNode, boolean preserveHistory, long fromRevision, java.lang.String fromPath, java.lang.String txnId) private FSIDcreateNode(FSRevisionNode revNode, java.lang.String copyId, java.lang.String txnId) voiddeleteNode(java.lang.String path) java.util.Map<java.lang.String,java.lang.String> private FSTransactionRootvoidincrementMergeInfoUpTree(FSParentPath parentPath, long increment) static booleanvoidmakeCopy(FSRevisionRoot fromRoot, java.lang.String fromPath, java.lang.String toPath, boolean preserveHistory) voidmakeDir(java.lang.String path) makeEntry(FSRevisionNode parent, java.lang.String parentPath, java.lang.String entryName, boolean isDir, java.lang.String txnId) voidmakeFile(java.lang.String path) voidmakePathMutable(FSParentPath parentPath, java.lang.String errorPath) private static longmerge(FSFS owner, java.lang.String targetPath, FSRevisionNode target, FSRevisionNode source, FSRevisionNode ancestor, FSTransactionRoot txnRoot, java.lang.StringBuffer conflictPath) static voidmergeChanges(FSFS owner, FSTransactionRoot txnRoot, FSRevisionNode sourceNode, java.lang.StringBuffer conflictPath) java.lang.StringreserveCopyId(java.lang.String txnId) private voidscheduleForAutoUnlock(java.lang.String username, java.lang.String path, SVNLock lock) static voidsetAutoUnlock(boolean autoUnlock) private static voidupdateAncestry(FSFS owner, FSID sourceId, FSID targetId) private voidverifyLock(SVNLock lock, java.util.Collection<java.lang.String> lockTokens, java.lang.String username) private voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ourAutoUnlock
private static volatile boolean ourAutoUnlock -
myFSFS
-
myTxnRoot
-
myTxn
-
myLockTokens
private java.util.Collection<java.lang.String> myLockTokens -
myAutoUnlockPaths
private java.util.Map<java.lang.String,java.lang.String> myAutoUnlockPaths -
myAuthor
private java.lang.String myAuthor
-
-
Constructor Details
-
FSCommitter
public FSCommitter(FSFS fsfs, FSTransactionRoot txnRoot, FSTransactionInfo txn, java.util.Collection<java.lang.String> lockTokens, java.lang.String author)
-
-
Method Details
-
setAutoUnlock
public static void setAutoUnlock(boolean autoUnlock) -
isAutoUnlock
public static boolean isAutoUnlock() -
getAutoUnlockPaths
public java.util.Map<java.lang.String,java.lang.String> getAutoUnlockPaths() -
deleteNode
- Throws:
SVNException
-
changeNodeProperty
public void changeNodeProperty(java.lang.String path, java.lang.String name, SVNPropertyValue propValue) throws SVNException - Throws:
SVNException
-
makeCopy
public void makeCopy(FSRevisionRoot fromRoot, java.lang.String fromPath, java.lang.String toPath, boolean preserveHistory) throws SVNException - Throws:
SVNException
-
makeFile
- Throws:
SVNException
-
makeDir
- Throws:
SVNException
-
makeEntry
public FSRevisionNode makeEntry(FSRevisionNode parent, java.lang.String parentPath, java.lang.String entryName, boolean isDir, java.lang.String txnId) throws SVNException - Throws:
SVNException
-
addChange
public void addChange(java.lang.String path, FSID id, FSPathChangeKind changeKind, boolean textModified, boolean propsModified, boolean mergeInfoModified, long copyFromRevision, java.lang.String copyFromPath, SVNNodeKind kind) throws SVNException - Throws:
SVNException
-
commitTxn
public long commitTxn(boolean runPreCommitHook, boolean runPostCommitHook, SVNErrorMessage[] postCommitHookError, java.lang.StringBuffer conflictPath) throws SVNException - Throws:
SVNException
-
makePathMutable
public void makePathMutable(FSParentPath parentPath, java.lang.String errorPath) throws SVNException - Throws:
SVNException
-
reserveCopyId
- Throws:
SVNException
-
incrementMergeInfoUpTree
- Throws:
SVNException
-
copy
private void copy(FSRevisionNode toNode, java.lang.String entryName, FSRevisionNode fromNode, boolean preserveHistory, long fromRevision, java.lang.String fromPath, java.lang.String txnId) throws SVNException - Throws:
SVNException
-
createNode
private FSID createNode(FSRevisionNode revNode, java.lang.String copyId, java.lang.String txnId) throws SVNException - Throws:
SVNException
-
commit
- Throws:
SVNException
-
commit
private void commit(java.lang.String startNodeId, java.lang.String startCopyId, long newRevision, java.io.OutputStream protoFileOS, FSID newRootId, FSTransactionRoot txnRoot, java.io.File revisionPrototypeFile, long offset, java.util.Collection<FSRepresentation> representations) throws SVNException - Throws:
SVNException
-
mergeChanges
public static void mergeChanges(FSFS owner, FSTransactionRoot txnRoot, FSRevisionNode sourceNode, java.lang.StringBuffer conflictPath) throws SVNException - Throws:
SVNException
-
merge
private static long merge(FSFS owner, java.lang.String targetPath, FSRevisionNode target, FSRevisionNode source, FSRevisionNode ancestor, FSTransactionRoot txnRoot, java.lang.StringBuffer conflictPath) throws SVNException - Throws:
SVNException
-
updateAncestry
- Throws:
SVNException
-
verifyLocks
- Throws:
SVNException
-
getTxnRoot
- Throws:
SVNException
-
allowLockedOperation
public void allowLockedOperation(FSFS fsfs, java.lang.String path, java.lang.String username, java.util.Collection<java.lang.String> lockTokens, boolean recursive, boolean haveWriteLock) throws SVNException - Throws:
SVNException
-
scheduleForAutoUnlock
-
verifyLock
private void verifyLock(SVNLock lock, java.util.Collection<java.lang.String> lockTokens, java.lang.String username) throws SVNException - Throws:
SVNException
-
abortTransaction
- Throws:
SVNException
-