public class SvnOldUpgrade extends SvnOldRunner<SvnWcGeneration,SvnUpgrade>
| Modifier and Type | Class and Description |
|---|---|
private class |
SvnOldUpgrade.RepositoryInfo |
class |
SvnOldUpgrade.TextBaseFileInfo |
class |
SvnOldUpgrade.TextBaseInfo |
| Modifier and Type | Field and Description |
|---|---|
private SVNWCAccess |
access |
private static java.lang.String |
ADM_EMPTY_FILE |
private static java.lang.String |
ADM_LOCK |
private static java.lang.String |
ADM_LOG |
private static java.lang.String |
ADM_README |
private static java.lang.String |
PRISTINE_STORAGE_RELPATH |
private static java.lang.String |
PROP_BASE_FOR_DIR |
private static java.lang.String |
PROP_BASE_SUBDIR |
private static java.lang.String |
PROP_REVERT_FOR_DIR |
private static java.lang.String |
PROP_WORKING_FOR_DIR |
private static java.lang.String |
PROPS_SUBDIR |
private static java.lang.String |
SDB_FILE |
private static java.lang.String |
SVN_WC__BASE_EXT |
private static java.lang.String |
SVN_WC__REVERT_EXT |
private static java.lang.String |
TEXT_BASE_SUBDIR |
private static java.lang.String |
WCPROPS_ALL_DATA |
private static java.lang.String |
WCPROPS_FNAME_FOR_DIR |
private static java.lang.String |
WCPROPS_SUBDIR_FOR_FILES |
UNKNOWNNULL| Constructor and Description |
|---|
SvnOldUpgrade() |
| Modifier and Type | Method and Description |
|---|---|
private static java.io.File |
buildLockfilePath(java.io.File dirAbsPath) |
private void |
checkIsOldWCRoot(java.io.File localAbsPath) |
private void |
createPhysicalLock(java.io.File absPath) |
private void |
ensureReposInfo(SVNEntry entry,
java.io.File localAbsPath,
SvnOldUpgrade.RepositoryInfo lastRepositoryInfo,
java.util.Map<SVNURL,java.lang.String> reposCache) |
private void |
fetchReposInfo(SVNEntry entry,
SvnOldUpgrade.RepositoryInfo lastRepositoryInfo) |
private static SVNURL |
getCanonicalURL(SVNURL original) |
static SVNURL |
getEntryCopyFromURL(SVNEntry entry) |
static SVNURL |
getEntryRepositoryRootURL(SVNEntry entry) |
static SVNURL |
getEntryURL(SVNEntry entry) |
private java.util.Set<java.io.File> |
getVersionedFiles(java.io.File parentRelPath,
SVNSqlJetDb sDb,
long wcId) |
static boolean |
getVersionedSubdirs(SVNWCAccess access,
java.io.File localAbsPath,
java.util.ArrayList<java.io.File> children,
boolean isCalculateDoDeleteDir,
boolean isSkipMissing) |
private SVNWCAccess |
getWCAccess() |
private void |
migrateNodeProps(java.io.File dirAbsPath,
ISVNWCDb.SVNWCDbUpgradeData data,
java.lang.String name,
int originalFormat,
SVNAdminArea area) |
private void |
migrateProps(java.io.File dirAbsPath,
ISVNWCDb.SVNWCDbUpgradeData data,
int originalFormat,
SVNAdminArea area) |
private SVNHashMap |
migrateTextBases(java.io.File dirAbsPath,
java.io.File newWcRootAbsPath,
SVNWCDbRoot root) |
private static java.util.Map<java.lang.String,SVNEntry> |
readEntries(SVNWCAccess access,
java.io.File localAbsPath) |
private int |
readWorkingCopyFormat(java.io.File firstTarget) |
private java.io.File |
removeSuffix(java.io.File file,
java.lang.String suffix) |
protected SvnWcGeneration |
run() |
private SvnOldUpgradeEntries.WriteBaton |
upgradeToWcng(SvnOldUpgradeEntries.WriteBaton parentDirBaton,
SVNWCDb db,
java.io.File dirAbsPath,
int oldFormat,
ISVNWCDb.SVNWCDbUpgradeData data,
java.util.Map<SVNURL,java.lang.String> reposCache,
SvnOldUpgrade.RepositoryInfo reposInfo) |
private void |
upgradeWorkingCopy(SvnOldUpgradeEntries.WriteBaton parentDirBaton,
SVNWCDb db,
java.io.File dirAbsPath,
ISVNWCDb.SVNWCDbUpgradeData data,
java.util.Map<SVNURL,java.lang.String> reposCache,
SvnOldUpgrade.RepositoryInfo reposInfo) |
private void |
wcUpgrade(java.io.File localAbsPath,
SvnOldUpgrade.RepositoryInfo reposInfo) |
static void |
wipeObsoleteFiles(java.io.File dirAbsPath) |
static void |
wipePostUpgrade(SVNWCContext ctx,
java.io.File dirAbsPath,
boolean isWholeAdmin) |
getWcGenerationgetFirstTarget, isApplicable, sleepForTimestampcheckCancelled, getOperation, getWcContext, handleEvent, handleEvent, reset, run, setOperation, setWcContextprivate static final java.lang.String SVN_WC__BASE_EXT
private static final java.lang.String SVN_WC__REVERT_EXT
private static final java.lang.String WCPROPS_SUBDIR_FOR_FILES
private static final java.lang.String WCPROPS_FNAME_FOR_DIR
private static final java.lang.String WCPROPS_ALL_DATA
private static final java.lang.String PROPS_SUBDIR
private static final java.lang.String PROP_BASE_SUBDIR
private static final java.lang.String PROP_BASE_FOR_DIR
private static final java.lang.String PROP_REVERT_FOR_DIR
private static final java.lang.String PROP_WORKING_FOR_DIR
private static final java.lang.String TEXT_BASE_SUBDIR
private static final java.lang.String ADM_README
private static final java.lang.String ADM_EMPTY_FILE
private static final java.lang.String ADM_LOG
private static final java.lang.String ADM_LOCK
private static final java.lang.String PRISTINE_STORAGE_RELPATH
private static final java.lang.String SDB_FILE
private SVNWCAccess access
public static SVNURL getEntryRepositoryRootURL(SVNEntry entry) throws SVNException
SVNExceptionpublic static SVNURL getEntryURL(SVNEntry entry) throws SVNException
SVNExceptionpublic static SVNURL getEntryCopyFromURL(SVNEntry entry) throws SVNException
SVNExceptionprivate static SVNURL getCanonicalURL(SVNURL original) throws SVNException
SVNExceptionprivate SVNWCAccess getWCAccess()
protected SvnWcGeneration run() throws SVNException
run in class SvnOperationRunner<SvnWcGeneration,SvnUpgrade>SVNExceptionprivate int readWorkingCopyFormat(java.io.File firstTarget)
throws SVNException
SVNExceptionprivate void checkIsOldWCRoot(java.io.File localAbsPath)
throws SVNException
SVNExceptionprivate void fetchReposInfo(SVNEntry entry, SvnOldUpgrade.RepositoryInfo lastRepositoryInfo) throws SVNException
SVNExceptionprivate void ensureReposInfo(SVNEntry entry, java.io.File localAbsPath, SvnOldUpgrade.RepositoryInfo lastRepositoryInfo, java.util.Map<SVNURL,java.lang.String> reposCache) throws SVNException
SVNExceptionprivate void wcUpgrade(java.io.File localAbsPath,
SvnOldUpgrade.RepositoryInfo reposInfo)
throws SVNException
SVNExceptionprivate void upgradeWorkingCopy(SvnOldUpgradeEntries.WriteBaton parentDirBaton, SVNWCDb db, java.io.File dirAbsPath, ISVNWCDb.SVNWCDbUpgradeData data, java.util.Map<SVNURL,java.lang.String> reposCache, SvnOldUpgrade.RepositoryInfo reposInfo) throws SVNException
SVNExceptionprivate SvnOldUpgradeEntries.WriteBaton upgradeToWcng(SvnOldUpgradeEntries.WriteBaton parentDirBaton, SVNWCDb db, java.io.File dirAbsPath, int oldFormat, ISVNWCDb.SVNWCDbUpgradeData data, java.util.Map<SVNURL,java.lang.String> reposCache, SvnOldUpgrade.RepositoryInfo reposInfo) throws SVNException
SVNExceptionprivate SVNHashMap migrateTextBases(java.io.File dirAbsPath, java.io.File newWcRootAbsPath, SVNWCDbRoot root) throws SVNException
SVNExceptionprivate java.io.File removeSuffix(java.io.File file,
java.lang.String suffix)
private void createPhysicalLock(java.io.File absPath)
throws SVNException
SVNExceptionpublic static void wipePostUpgrade(SVNWCContext ctx, java.io.File dirAbsPath, boolean isWholeAdmin) throws SVNException
SVNExceptionpublic static void wipeObsoleteFiles(java.io.File dirAbsPath)
throws SVNException
SVNExceptionprivate static java.io.File buildLockfilePath(java.io.File dirAbsPath)
private static java.util.Map<java.lang.String,SVNEntry> readEntries(SVNWCAccess access, java.io.File localAbsPath) throws SVNException
SVNExceptionpublic static boolean getVersionedSubdirs(SVNWCAccess access, java.io.File localAbsPath, java.util.ArrayList<java.io.File> children, boolean isCalculateDoDeleteDir, boolean isSkipMissing) throws SVNException
SVNExceptionprivate java.util.Set<java.io.File> getVersionedFiles(java.io.File parentRelPath,
SVNSqlJetDb sDb,
long wcId)
throws SVNException
SVNExceptionprivate void migrateProps(java.io.File dirAbsPath,
ISVNWCDb.SVNWCDbUpgradeData data,
int originalFormat,
SVNAdminArea area)
throws SVNException
SVNExceptionprivate void migrateNodeProps(java.io.File dirAbsPath,
ISVNWCDb.SVNWCDbUpgradeData data,
java.lang.String name,
int originalFormat,
SVNAdminArea area)
throws SVNException
SVNException