Class SvnNgCommit
java.lang.Object
org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner<V,T>
org.tmatesoft.svn.core.internal.wc2.SvnLocalOperationRunner<V,T>
org.tmatesoft.svn.core.internal.wc2.ng.SvnNgOperationRunner<SVNCommitInfo,SvnCommit>
org.tmatesoft.svn.core.internal.wc2.ng.SvnNgCommit
- All Implemented Interfaces:
ISvnCommitRunner
,SvnNgCommitUtil.ISvnUrlKindCallback
,ISVNCanceller
,ISVNEventHandler
,ISvnOperationRunner<SVNCommitInfo,
SvnCommit>
public class SvnNgCommit
extends SvnNgOperationRunner<SVNCommitInfo,SvnCommit>
implements ISvnCommitRunner, SvnNgCommitUtil.ISvnUrlKindCallback
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private static class
-
Field Summary
Fields inherited from interface org.tmatesoft.svn.core.ISVNCanceller
NULL
Fields inherited from interface org.tmatesoft.svn.core.wc.ISVNEventHandler
UNKNOWN
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
appendExternalsAsExplicitTargets
(Collection<String> targets, File baseAbsPath, boolean includeFileExternals, boolean includeDirectoryExternals, SVNDepth depth, SVNWCContext context) collectCommitItems
(SvnCommit operation) private Collection<File>
determineLockTargets
(File baseDirectory, Collection<String> targets) void
disposeCommitPacket
(Object lockingContext, boolean disposeParentContext) protected SVNCommitInfo
doRun
(SVNWCContext context, SvnCommitPacket packet) getUrlKind
(SVNURL url, long revision) private void
postProcessCommitItem
(SvnNgCommit.SvnCommittedQueue queue, SvnCommitItem item, boolean keepChangelists, boolean keepLocks, SvnChecksum sha1Checksum) private void
processCommittedInternal
(File localAbspath, boolean recurse, boolean topOfRecurse, long newRevision, SVNDate revDate, String revAuthor, SVNProperties newDavCache, boolean unlockOnly, boolean noUnlock, boolean keepChangelist, SvnChecksum sha1Checksum, SvnNgCommit.SvnCommittedQueue queue) private void
processCommittedLeaf
(File localAbspath, boolean viaRecurse, long newRevnum, SVNDate newChangedDate, String newChangedAuthor, SVNProperties newDavCache, boolean unlockOnly, boolean noUnlock, boolean keepChangelist, SvnChecksum checksum) private void
processCommittedQueue
(SvnNgCommit.SvnCommittedQueue queue, long newRevision, Date revDate, String revAuthor) private void
queueCommitted
(SvnNgCommit.SvnCommittedQueue queue, File localAbsPath, boolean recurse, SVNProperties wcPropChanges, boolean unlockOnly, boolean removeLock, boolean removeChangelist, SvnChecksum sha1Checksum) protected SVNCommitInfo
run
(SVNWCContext context) splitLockingContext
(Object lockingContext, SvnCommitPacket newPacket) Methods inherited from class org.tmatesoft.svn.core.internal.wc2.ng.SvnNgOperationRunner
deleteDeleteFiles, getRepositoryAccess, getWcGeneration, matchesChangelist, reset, run, setRepositoryAccess
Methods inherited from class org.tmatesoft.svn.core.internal.wc2.SvnLocalOperationRunner
getFirstTarget, isApplicable, sleepForTimestamp
Methods inherited from class org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner
checkCancelled, getOperation, getWcContext, handleEvent, handleEvent, run, setOperation, setWcContext
-
Constructor Details
-
SvnNgCommit
public SvnNgCommit()
-
-
Method Details
-
collectCommitItems
- Specified by:
collectCommitItems
in interfaceISvnCommitRunner
- Throws:
SVNException
-
appendExternalsAsExplicitTargets
private void appendExternalsAsExplicitTargets(Collection<String> targets, File baseAbsPath, boolean includeFileExternals, boolean includeDirectoryExternals, SVNDepth depth, SVNWCContext context) throws SVNException - Throws:
SVNException
-
run
- Specified by:
run
in classSvnNgOperationRunner<SVNCommitInfo,
SvnCommit> - Throws:
SVNException
-
doRun
- Throws:
SVNException
-
postProcessCommitItem
private void postProcessCommitItem(SvnNgCommit.SvnCommittedQueue queue, SvnCommitItem item, boolean keepChangelists, boolean keepLocks, SvnChecksum sha1Checksum) throws SVNException - Throws:
SVNException
-
getUrlKind
- Specified by:
getUrlKind
in interfaceSvnNgCommitUtil.ISvnUrlKindCallback
- Throws:
SVNException
-
determineLockTargets
private Collection<File> determineLockTargets(File baseDirectory, Collection<String> targets) throws SVNException - Throws:
SVNException
-
splitLockingContext
- Specified by:
splitLockingContext
in interfaceISvnCommitRunner
-
disposeCommitPacket
public void disposeCommitPacket(Object lockingContext, boolean disposeParentContext) throws SVNException - Specified by:
disposeCommitPacket
in interfaceISvnCommitRunner
- Throws:
SVNException
-
queueCommitted
private void queueCommitted(SvnNgCommit.SvnCommittedQueue queue, File localAbsPath, boolean recurse, SVNProperties wcPropChanges, boolean unlockOnly, boolean removeLock, boolean removeChangelist, SvnChecksum sha1Checksum) -
processCommittedQueue
private void processCommittedQueue(SvnNgCommit.SvnCommittedQueue queue, long newRevision, Date revDate, String revAuthor) throws SVNException - Throws:
SVNException
-
processCommittedInternal
private void processCommittedInternal(File localAbspath, boolean recurse, boolean topOfRecurse, long newRevision, SVNDate revDate, String revAuthor, SVNProperties newDavCache, boolean unlockOnly, boolean noUnlock, boolean keepChangelist, SvnChecksum sha1Checksum, SvnNgCommit.SvnCommittedQueue queue) throws SVNException - Throws:
SVNException
-
processCommittedLeaf
private void processCommittedLeaf(File localAbspath, boolean viaRecurse, long newRevnum, SVNDate newChangedDate, String newChangedAuthor, SVNProperties newDavCache, boolean unlockOnly, boolean noUnlock, boolean keepChangelist, SvnChecksum checksum) throws SVNException - Throws:
SVNException
-