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