Class SVNCommitUtil
java.lang.Object
org.tmatesoft.svn.core.internal.wc.SVNCommitUtil
public class SVNCommitUtil
extends java.lang.Object
- Version:
- 1.3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static java.io.FileadjustRelativePaths(java.io.File rootFile, java.util.Collection relativePaths) private static voidcollectLocks(SVNAdminArea adminArea, java.util.Map lockTokens) static SVNWCAccesscreateCommitWCAccess(java.io.File[] paths, SVNDepth depth, boolean force, java.util.Collection relativePaths, SVNStatusClient16 statusClient) static SVNWCAccess[]createCommitWCAccess2(java.io.File[] paths, SVNDepth depth, boolean force, java.util.Map relativePathsMap, SVNStatusClient16 statusClient) static voiddriveCommitEditor(ISVNCommitPathHandler handler, java.util.Collection paths, ISVNEditor editor, long revision) static voidfilterOutFileExternals(java.util.Collection explicitPaths, java.util.Map commitables, SVNWCAccess baseAccess) static voidharvestCommitables(java.util.Map commitables, SVNAdminArea dir, java.io.File path, SVNEntry parentEntry, SVNEntry entry, java.lang.String url, java.lang.String copyFromURL, boolean copyMode, boolean addsOnly, boolean justLocked, java.util.Map lockTokens, SVNDepth depth, boolean forcedRecursion, java.util.Collection changelists, ISVNCommitParameters params, java.util.Map pathsToExternalsProperties) static SVNCommitItem[]harvestCommitables(SVNWCAccess baseAccess, java.util.Collection paths, java.util.Map lockTokens, boolean justLocked, SVNDepth depth, boolean force, java.util.Collection changelists, ISVNCommitParameters params) private static booleanisRecursiveCommitForced(java.io.File directory) private static voidremoveRedundantPaths(java.util.Collection dirsToLockRecursively, java.util.Collection dirsToLock) static SVNURLtranslateCommitables(SVNCommitItem[] items, java.util.Map decodedPaths) static java.util.MaptranslateLockTokens(java.util.Map lockTokens, java.lang.String baseURL) static java.lang.StringvalidateCommitMessage(java.lang.String message) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
FILE_COMPARATOR
public static final java.util.Comparator FILE_COMPARATOR
-
-
Constructor Details
-
SVNCommitUtil
public SVNCommitUtil()
-
-
Method Details
-
driveCommitEditor
public static void driveCommitEditor(ISVNCommitPathHandler handler, java.util.Collection paths, ISVNEditor editor, long revision) throws SVNException - Throws:
SVNException
-
createCommitWCAccess
public static SVNWCAccess createCommitWCAccess(java.io.File[] paths, SVNDepth depth, boolean force, java.util.Collection relativePaths, SVNStatusClient16 statusClient) throws SVNException - Throws:
SVNException
-
createCommitWCAccess2
public static SVNWCAccess[] createCommitWCAccess2(java.io.File[] paths, SVNDepth depth, boolean force, java.util.Map relativePathsMap, SVNStatusClient16 statusClient) throws SVNException - Throws:
SVNException
-
harvestCommitables
public static SVNCommitItem[] harvestCommitables(SVNWCAccess baseAccess, java.util.Collection paths, java.util.Map lockTokens, boolean justLocked, SVNDepth depth, boolean force, java.util.Collection changelists, ISVNCommitParameters params) throws SVNException - Throws:
SVNException
-
filterOutFileExternals
public static void filterOutFileExternals(java.util.Collection explicitPaths, java.util.Map commitables, SVNWCAccess baseAccess) throws SVNException - Throws:
SVNException
-
translateCommitables
public static SVNURL translateCommitables(SVNCommitItem[] items, java.util.Map decodedPaths) throws SVNException - Throws:
SVNException
-
translateLockTokens
public static java.util.Map translateLockTokens(java.util.Map lockTokens, java.lang.String baseURL) -
harvestCommitables
public static void harvestCommitables(java.util.Map commitables, SVNAdminArea dir, java.io.File path, SVNEntry parentEntry, SVNEntry entry, java.lang.String url, java.lang.String copyFromURL, boolean copyMode, boolean addsOnly, boolean justLocked, java.util.Map lockTokens, SVNDepth depth, boolean forcedRecursion, java.util.Collection changelists, ISVNCommitParameters params, java.util.Map pathsToExternalsProperties) throws SVNException - Throws:
SVNException
-
collectLocks
private static void collectLocks(SVNAdminArea adminArea, java.util.Map lockTokens) throws SVNException - Throws:
SVNException
-
removeRedundantPaths
private static void removeRedundantPaths(java.util.Collection dirsToLockRecursively, java.util.Collection dirsToLock) -
adjustRelativePaths
private static java.io.File adjustRelativePaths(java.io.File rootFile, java.util.Collection relativePaths) throws SVNException - Throws:
SVNException
-
isRecursiveCommitForced
- Throws:
SVNException
-
validateCommitMessage
public static java.lang.String validateCommitMessage(java.lang.String message)
-