Class SvnOldUpgrade
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.old.SvnOldRunner<SvnWcGeneration,SvnUpgrade>
org.tmatesoft.svn.core.internal.wc2.old.SvnOldUpgrade
- All Implemented Interfaces:
ISVNCanceller,ISVNEventHandler,ISvnOperationRunner<SvnWcGeneration,SvnUpgrade>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classclassclass -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SVNWCAccessprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final StringFields inherited from interface org.tmatesoft.svn.core.ISVNCanceller
NULLFields inherited from interface org.tmatesoft.svn.core.wc.ISVNEventHandler
UNKNOWN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static FilebuildLockfilePath(File dirAbsPath) private voidcheckIsOldWCRoot(File localAbsPath) private voidcreatePhysicalLock(File absPath) private voidensureReposInfo(SVNEntry entry, File localAbsPath, SvnOldUpgrade.RepositoryInfo lastRepositoryInfo, Map<SVNURL, String> reposCache) private voidfetchReposInfo(SVNEntry entry, SvnOldUpgrade.RepositoryInfo lastRepositoryInfo) private static SVNURLgetCanonicalURL(SVNURL original) static SVNURLgetEntryCopyFromURL(SVNEntry entry) static SVNURLstatic SVNURLgetEntryURL(SVNEntry entry) getVersionedFiles(File parentRelPath, SVNSqlJetDb sDb, long wcId) static booleangetVersionedSubdirs(SVNWCAccess access, File localAbsPath, ArrayList<File> children, boolean isCalculateDoDeleteDir, boolean isSkipMissing) private SVNWCAccessprivate voidmigrateNodeProps(File dirAbsPath, ISVNWCDb.SVNWCDbUpgradeData data, String name, int originalFormat, SVNAdminArea area) private voidmigrateProps(File dirAbsPath, ISVNWCDb.SVNWCDbUpgradeData data, int originalFormat, SVNAdminArea area) private SVNHashMapmigrateTextBases(File dirAbsPath, File newWcRootAbsPath, SVNWCDbRoot root) readEntries(SVNWCAccess access, File localAbsPath) private intreadWorkingCopyFormat(File firstTarget) private FileremoveSuffix(File file, String suffix) protected SvnWcGenerationrun()private SvnOldUpgradeEntries.WriteBatonupgradeToWcng(SvnOldUpgradeEntries.WriteBaton parentDirBaton, SVNWCDb db, File dirAbsPath, int oldFormat, ISVNWCDb.SVNWCDbUpgradeData data, Map<SVNURL, String> reposCache, SvnOldUpgrade.RepositoryInfo reposInfo) private voidupgradeWorkingCopy(SvnOldUpgradeEntries.WriteBaton parentDirBaton, SVNWCDb db, File dirAbsPath, ISVNWCDb.SVNWCDbUpgradeData data, Map<SVNURL, String> reposCache, SvnOldUpgrade.RepositoryInfo reposInfo) private voidwcUpgrade(File localAbsPath, SvnOldUpgrade.RepositoryInfo reposInfo) static voidwipeObsoleteFiles(File dirAbsPath) static voidwipePostUpgrade(SVNWCContext ctx, File dirAbsPath, boolean isWholeAdmin) Methods inherited from class org.tmatesoft.svn.core.internal.wc2.old.SvnOldRunner
getWcGenerationMethods inherited from class org.tmatesoft.svn.core.internal.wc2.SvnLocalOperationRunner
getFirstTarget, isApplicable, sleepForTimestampMethods inherited from class org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner
checkCancelled, getOperation, getWcContext, handleEvent, handleEvent, reset, run, setOperation, setWcContext
-
Field Details
-
SVN_WC__BASE_EXT
- See Also:
-
SVN_WC__REVERT_EXT
- See Also:
-
WCPROPS_SUBDIR_FOR_FILES
- See Also:
-
WCPROPS_FNAME_FOR_DIR
- See Also:
-
WCPROPS_ALL_DATA
- See Also:
-
PROPS_SUBDIR
- See Also:
-
PROP_BASE_SUBDIR
- See Also:
-
PROP_BASE_FOR_DIR
- See Also:
-
PROP_REVERT_FOR_DIR
- See Also:
-
PROP_WORKING_FOR_DIR
- See Also:
-
TEXT_BASE_SUBDIR
- See Also:
-
ADM_README
- See Also:
-
ADM_EMPTY_FILE
- See Also:
-
ADM_LOG
- See Also:
-
ADM_LOCK
- See Also:
-
PRISTINE_STORAGE_RELPATH
- See Also:
-
SDB_FILE
- See Also:
-
access
-
-
Constructor Details
-
SvnOldUpgrade
public SvnOldUpgrade()
-
-
Method Details
-
getEntryRepositoryRootURL
- Throws:
SVNException
-
getEntryURL
- Throws:
SVNException
-
getEntryCopyFromURL
- Throws:
SVNException
-
getCanonicalURL
- Throws:
SVNException
-
getWCAccess
-
run
- Specified by:
runin classSvnOperationRunner<SvnWcGeneration,SvnUpgrade> - Throws:
SVNException
-
readWorkingCopyFormat
- Throws:
SVNException
-
checkIsOldWCRoot
- Throws:
SVNException
-
fetchReposInfo
private void fetchReposInfo(SVNEntry entry, SvnOldUpgrade.RepositoryInfo lastRepositoryInfo) throws SVNException - Throws:
SVNException
-
ensureReposInfo
private void ensureReposInfo(SVNEntry entry, File localAbsPath, SvnOldUpgrade.RepositoryInfo lastRepositoryInfo, Map<SVNURL, String> reposCache) throws SVNException- Throws:
SVNException
-
wcUpgrade
private void wcUpgrade(File localAbsPath, SvnOldUpgrade.RepositoryInfo reposInfo) throws SVNException - Throws:
SVNException
-
upgradeWorkingCopy
private void upgradeWorkingCopy(SvnOldUpgradeEntries.WriteBaton parentDirBaton, SVNWCDb db, File dirAbsPath, ISVNWCDb.SVNWCDbUpgradeData data, Map<SVNURL, String> reposCache, SvnOldUpgrade.RepositoryInfo reposInfo) throws SVNException- Throws:
SVNException
-
upgradeToWcng
private SvnOldUpgradeEntries.WriteBaton upgradeToWcng(SvnOldUpgradeEntries.WriteBaton parentDirBaton, SVNWCDb db, File dirAbsPath, int oldFormat, ISVNWCDb.SVNWCDbUpgradeData data, Map<SVNURL, String> reposCache, SvnOldUpgrade.RepositoryInfo reposInfo) throws SVNException- Throws:
SVNException
-
migrateTextBases
private SVNHashMap migrateTextBases(File dirAbsPath, File newWcRootAbsPath, SVNWCDbRoot root) throws SVNException - Throws:
SVNException
-
removeSuffix
-
createPhysicalLock
- Throws:
SVNException
-
wipePostUpgrade
public static void wipePostUpgrade(SVNWCContext ctx, File dirAbsPath, boolean isWholeAdmin) throws SVNException - Throws:
SVNException
-
wipeObsoleteFiles
- Throws:
SVNException
-
buildLockfilePath
-
readEntries
private static Map<String,SVNEntry> readEntries(SVNWCAccess access, File localAbsPath) throws SVNException - Throws:
SVNException
-
getVersionedSubdirs
public static boolean getVersionedSubdirs(SVNWCAccess access, File localAbsPath, ArrayList<File> children, boolean isCalculateDoDeleteDir, boolean isSkipMissing) throws SVNException - Throws:
SVNException
-
getVersionedFiles
private Set<File> getVersionedFiles(File parentRelPath, SVNSqlJetDb sDb, long wcId) throws SVNException - Throws:
SVNException
-
migrateProps
private void migrateProps(File dirAbsPath, ISVNWCDb.SVNWCDbUpgradeData data, int originalFormat, SVNAdminArea area) throws SVNException - Throws:
SVNException
-
migrateNodeProps
private void migrateNodeProps(File dirAbsPath, ISVNWCDb.SVNWCDbUpgradeData data, String name, int originalFormat, SVNAdminArea area) throws SVNException - Throws:
SVNException
-