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 Modifier and Type Field Description static java.util.ComparatorFILE_COMPARATOR
-
Constructor Summary
Constructors Constructor Description SVNCommitUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private 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)
-
-
-
Method Detail
-
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
private static boolean isRecursiveCommitForced(java.io.File directory) throws SVNException- Throws:
SVNException
-
validateCommitMessage
public static java.lang.String validateCommitMessage(java.lang.String message)
-
-