Class SVNAdminArea
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.wc.admin.SVNAdminArea
-
- Direct Known Subclasses:
SVNAdminArea14,SVNXMLAdminArea
public abstract class SVNAdminArea extends java.lang.Object- Version:
- 1.3
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringADM_KILLMEprivate java.io.FilemyAdminRootprotected java.util.MapmyBasePropertiesprivate ISVNCommitParametersmyCommitParametersprivate java.io.FilemyDirectoryprotected java.util.MapmyEntriesprotected java.util.MapmyPropertiesprivate java.util.MapmyRevertPropertiesprotected booleanmyWasLockedprivate SVNWCAccessmyWCAccessprivate intmyWCFormatVersionprotected java.util.MapmyWCPropertiesprivate static booleanourIsCleanupSafe
-
Constructor Summary
Constructors Modifier Constructor Description protectedSVNAdminArea(java.io.File dir)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description SVNEntryaddEntry(java.lang.String name)abstract voidaddTreeConflict(SVNTreeConflictDescription conflict)static java.lang.StringasString(java.lang.String[] array, java.lang.String delimiter)voidcleanup()voidclose()voidcloseEntries()voidcloseVersionedProperties()voidcloseWCProperties()voidcommit(java.lang.String target, SVNCommitInfo info, SVNProperties wcPropChanges, boolean removeLock, boolean recursive, boolean removeChangelist, java.util.Collection explicitCommitPaths, ISVNCommitParameters params)private booleancompareAndVerify(java.io.File text, java.io.File baseFile, boolean compareTextBase, boolean checksum)protected SVNHashMapcreateEntryHashMap(java.util.Map map)protected voidcreateFormatFile(java.io.File formatFile, boolean createMyself)abstract SVNAdminAreacreateVersionedDirectory(java.io.File dir, java.lang.String url, java.lang.String rootURL, java.lang.String uuid, long revNumber, boolean createMyself, SVNDepth depth)voiddeleteEntry(java.lang.String name)abstract SVNTreeConflictDescriptiondeleteTreeConflict(java.lang.String name)private voiddestroyAdminArea()java.util.Iteratorentries(boolean hidden)voidextendLockToTree()protected abstract java.util.MapfetchEntries()voidfoldScheduling(java.lang.String name, java.util.Map attributes, boolean force)protected abstract SVNVersionedPropertiesformatBaseProperties(SVNProperties srcProperties)protected abstract SVNVersionedPropertiesformatProperties(SVNEntry entry, SVNProperties srcProperties)SVNAdminAreaformatWC(SVNAdminArea adminArea)static java.lang.String[]fromString(java.lang.String str, java.lang.String delimiter)java.io.FilegetAdminDirectory()java.io.FilegetAdminFile(java.lang.String name)java.io.FilegetAdminTempDirectory()java.io.FilegetBaseFile(java.lang.String name, boolean tmp)java.io.InputStreamgetBaseFileForReading(java.lang.String name, boolean tmp)java.io.OutputStreamgetBaseFileForWriting(java.lang.String name)abstract SVNVersionedPropertiesgetBaseProperties(java.lang.String name)java.io.FilegetBasePropertiesFile(java.lang.String name, boolean tmp)protected java.util.MapgetBasePropertiesStorage(boolean create)java.util.MapgetEntries()SVNEntrygetEntry(java.lang.String name, boolean hidden)java.io.FilegetFile(java.lang.String name)abstract intgetFormatVersion()SVNLoggetLog()SVNObjectsPoolgetObjectsPool()abstract SVNVersionedPropertiesgetProperties(java.lang.String name)java.io.FilegetPropertiesFile(java.lang.String name, boolean tmp)protected java.util.MapgetPropertiesStorage(boolean create)java.lang.StringgetPropertyTime(java.lang.String name)java.lang.StringgetRelativePath(SVNAdminArea anchor)abstract SVNVersionedPropertiesgetRevertProperties(java.lang.String name)java.io.FilegetRevertPropertiesFile(java.lang.String name, boolean tmp)protected java.util.MapgetRevertPropertiesStorage(boolean create)java.io.FilegetRoot()abstract java.lang.StringgetThisDirName()abstract SVNTreeConflictDescriptiongetTreeConflict(java.lang.String name)SVNEntrygetVersionedEntry(java.lang.String name, boolean hidden)SVNWCAccessgetWCAccess()abstract SVNVersionedPropertiesgetWCProperties(java.lang.String name)protected java.util.MapgetWCPropertiesStorage(boolean create)intgetWorkingCopyFormatVersion()private voidhandleCharsetProperty(SVNAdminArea adminArea, SVNLog log, SVNEntry entry, SVNVersionedProperties baseProps)abstract voidhandleKillMe()private voidhandlePropTime(SVNLog log, SVNEntry entry)booleanhasPropConflict(java.lang.String name)abstract booleanhasProperties(java.lang.String entryName)abstract booleanhasPropModifications(java.lang.String entryName)booleanhasTextConflict(java.lang.String name)booleanhasTextModifications(java.lang.String name, boolean forceComparision)booleanhasTextModifications(java.lang.String name, boolean forceComparison, boolean compareTextBase, boolean compareChecksum)abstract booleanhasTreeConflict(java.lang.String name)booleanhasVersionedFileTextChanges(java.io.File file, java.io.File baseFile, boolean compareTextBase)abstract voidinstallProperties(java.lang.String name, SVNProperties baseProps, SVNProperties workingProps, SVNLog log, boolean writeBaseProps, boolean close)protected abstract booleanisEntryPropertyApplicable(java.lang.String name)booleanisKillMe()abstract booleanisLocked()static booleanisSafeCleanup()abstract booleanisVersioned()protected java.util.MaploadEntries()abstract booleanlock(boolean stealLock)private static voidmarkLogProcessed(java.io.File logFile)booleanmarkResolved(java.lang.String name, boolean text, boolean props, SVNConflictChoice conflictChoice)SVNStatusTypemergeProperties(java.lang.String name, SVNProperties serverBaseProps, SVNProperties propDiff, java.lang.String localLabel, java.lang.String latestLabel, boolean baseMerge, boolean dryRun, SVNLog log)SVNStatusTypemergeProperties(java.lang.String name, SVNProperties serverBaseProps, SVNProperties baseProps, SVNProperties workingProps, SVNProperties propDiff, java.lang.String localLabel, java.lang.String latestLabel, boolean baseMerge, boolean dryRun, SVNLog log)SVNStatusTypemergeText(java.lang.String localPath, java.io.File base, java.io.File latest, java.io.File copyFromText, java.lang.String localLabel, java.lang.String baseLabel, java.lang.String latestLabel, SVNProperties propChanges, boolean dryRun, SVNDiffOptions options, SVNLog log)SVNEntrymodifyEntry(java.lang.String name, java.util.Map attributes, boolean save, boolean force)abstract voidpostCommit(java.lang.String fileName, long revisionNumber, boolean implicit, boolean rerun, SVNErrorCode errorCode)voidpostUpgradeFormat(int format)protected abstract booleanreadExtraOptions(java.io.BufferedReader reader, SVNEntry entry)voidremoveFromRevisionControl(java.lang.String name, boolean deleteWorkingFiles, boolean reportInstantError)private static voidresolveDefaults(java.util.Map entries)voidrestoreFile(java.lang.String name)voidrunLogs()voidrunLogs(boolean rerun)abstract voidsaveEntries(boolean close)abstract voidsaveVersionedProperties(SVNLog log, boolean close)abstract voidsaveWCProperties(boolean close)voidsetCommitParameters(ISVNCommitParameters commitParameters)abstract voidsetFileExternalLocation(java.lang.String name, SVNURL url, SVNRevision pegRevision, SVNRevision revision, SVNURL reposRootURL)protected voidsetLocked(boolean locked)static voidsetSafeCleanup(boolean safe)voidsetWCAccess(SVNWCAccess wcAccess)voidsetWorkingCopyFormatVersion(int wcFormatVersion)booleantweakEntry(java.lang.String name, java.lang.String newURL, java.lang.String reposRoot, long newRevision, boolean remove)abstract booleanunlock()voidupdateURL(java.lang.String rootURL, boolean recursive)voidwalkThisDirectory(ISVNEntryHandler handler, boolean showHidden, SVNDepth depth)protected abstract voidwriteEntries(java.io.Writer writer)protected abstract intwriteExtraOptions(java.io.Writer writer, java.lang.String entryName, SVNEntry entry, int emptyFields)
-
-
-
Field Detail
-
ADM_KILLME
protected static final java.lang.String ADM_KILLME
- See Also:
- Constant Field Values
-
ourIsCleanupSafe
private static volatile boolean ourIsCleanupSafe
-
myBaseProperties
protected java.util.Map myBaseProperties
-
myProperties
protected java.util.Map myProperties
-
myWCProperties
protected java.util.Map myWCProperties
-
myEntries
protected java.util.Map myEntries
-
myWasLocked
protected boolean myWasLocked
-
myCommitParameters
private ISVNCommitParameters myCommitParameters
-
myRevertProperties
private java.util.Map myRevertProperties
-
myDirectory
private java.io.File myDirectory
-
myWCAccess
private SVNWCAccess myWCAccess
-
myAdminRoot
private java.io.File myAdminRoot
-
myWCFormatVersion
private int myWCFormatVersion
-
-
Method Detail
-
setSafeCleanup
public static void setSafeCleanup(boolean safe)
-
isSafeCleanup
public static boolean isSafeCleanup()
-
isLocked
public abstract boolean isLocked() throws SVNException- Throws:
SVNException
-
isVersioned
public abstract boolean isVersioned()
-
isEntryPropertyApplicable
protected abstract boolean isEntryPropertyApplicable(java.lang.String name)
-
lock
public abstract boolean lock(boolean stealLock) throws SVNException- Throws:
SVNException
-
unlock
public abstract boolean unlock() throws SVNException- Throws:
SVNException
-
getBaseProperties
public abstract SVNVersionedProperties getBaseProperties(java.lang.String name) throws SVNException
- Throws:
SVNException
-
getRevertProperties
public abstract SVNVersionedProperties getRevertProperties(java.lang.String name) throws SVNException
- Throws:
SVNException
-
getWCProperties
public abstract SVNVersionedProperties getWCProperties(java.lang.String name) throws SVNException
- Throws:
SVNException
-
getProperties
public abstract SVNVersionedProperties getProperties(java.lang.String name) throws SVNException
- Throws:
SVNException
-
saveVersionedProperties
public abstract void saveVersionedProperties(SVNLog log, boolean close) throws SVNException
- Throws:
SVNException
-
installProperties
public abstract void installProperties(java.lang.String name, SVNProperties baseProps, SVNProperties workingProps, SVNLog log, boolean writeBaseProps, boolean close) throws SVNException- Throws:
SVNException
-
saveWCProperties
public abstract void saveWCProperties(boolean close) throws SVNException- Throws:
SVNException
-
saveEntries
public abstract void saveEntries(boolean close) throws SVNException- Throws:
SVNException
-
getThisDirName
public abstract java.lang.String getThisDirName()
-
hasPropModifications
public abstract boolean hasPropModifications(java.lang.String entryName) throws SVNException- Throws:
SVNException
-
hasProperties
public abstract boolean hasProperties(java.lang.String entryName) throws SVNException- Throws:
SVNException
-
createVersionedDirectory
public abstract SVNAdminArea createVersionedDirectory(java.io.File dir, java.lang.String url, java.lang.String rootURL, java.lang.String uuid, long revNumber, boolean createMyself, SVNDepth depth) throws SVNException
- Throws:
SVNException
-
postCommit
public abstract void postCommit(java.lang.String fileName, long revisionNumber, boolean implicit, boolean rerun, SVNErrorCode errorCode) throws SVNException- Throws:
SVNException
-
handleKillMe
public abstract void handleKillMe() throws SVNException- Throws:
SVNException
-
hasTreeConflict
public abstract boolean hasTreeConflict(java.lang.String name) throws SVNException- Throws:
SVNException
-
getTreeConflict
public abstract SVNTreeConflictDescription getTreeConflict(java.lang.String name) throws SVNException
- Throws:
SVNException
-
addTreeConflict
public abstract void addTreeConflict(SVNTreeConflictDescription conflict) throws SVNException
- Throws:
SVNException
-
deleteTreeConflict
public abstract SVNTreeConflictDescription deleteTreeConflict(java.lang.String name) throws SVNException
- Throws:
SVNException
-
setFileExternalLocation
public abstract void setFileExternalLocation(java.lang.String name, SVNURL url, SVNRevision pegRevision, SVNRevision revision, SVNURL reposRootURL) throws SVNException- Throws:
SVNException
-
getFormatVersion
public abstract int getFormatVersion()
-
updateURL
public void updateURL(java.lang.String rootURL, boolean recursive) throws SVNException- Throws:
SVNException
-
hasTextModifications
public boolean hasTextModifications(java.lang.String name, boolean forceComparision) throws SVNException- Throws:
SVNException
-
hasTextModifications
public boolean hasTextModifications(java.lang.String name, boolean forceComparison, boolean compareTextBase, boolean compareChecksum) throws SVNException- Throws:
SVNException
-
hasVersionedFileTextChanges
public boolean hasVersionedFileTextChanges(java.io.File file, java.io.File baseFile, boolean compareTextBase) throws SVNException- Throws:
SVNException
-
getRelativePath
public java.lang.String getRelativePath(SVNAdminArea anchor)
-
tweakEntry
public boolean tweakEntry(java.lang.String name, java.lang.String newURL, java.lang.String reposRoot, long newRevision, boolean remove) throws SVNException- Throws:
SVNException
-
isKillMe
public boolean isKillMe()
-
markResolved
public boolean markResolved(java.lang.String name, boolean text, boolean props, SVNConflictChoice conflictChoice) throws SVNException- Throws:
SVNException
-
restoreFile
public void restoreFile(java.lang.String name) throws SVNException- Throws:
SVNException
-
mergeProperties
public SVNStatusType mergeProperties(java.lang.String name, SVNProperties serverBaseProps, SVNProperties propDiff, java.lang.String localLabel, java.lang.String latestLabel, boolean baseMerge, boolean dryRun, SVNLog log) throws SVNException
- Throws:
SVNException
-
mergeProperties
public SVNStatusType mergeProperties(java.lang.String name, SVNProperties serverBaseProps, SVNProperties baseProps, SVNProperties workingProps, SVNProperties propDiff, java.lang.String localLabel, java.lang.String latestLabel, boolean baseMerge, boolean dryRun, SVNLog log) throws SVNException
- Throws:
SVNException
-
mergeText
public SVNStatusType mergeText(java.lang.String localPath, java.io.File base, java.io.File latest, java.io.File copyFromText, java.lang.String localLabel, java.lang.String baseLabel, java.lang.String latestLabel, SVNProperties propChanges, boolean dryRun, SVNDiffOptions options, SVNLog log) throws SVNException
- Throws:
SVNException
-
getBaseFileForReading
public java.io.InputStream getBaseFileForReading(java.lang.String name, boolean tmp) throws SVNException- Throws:
SVNException
-
getBaseFileForWriting
public java.io.OutputStream getBaseFileForWriting(java.lang.String name) throws SVNException- Throws:
SVNException
-
getPropertyTime
public java.lang.String getPropertyTime(java.lang.String name)
-
getLog
public SVNLog getLog()
-
runLogs
public void runLogs() throws SVNException- Throws:
SVNException
-
runLogs
public void runLogs(boolean rerun) throws SVNException- Throws:
SVNException
-
removeFromRevisionControl
public void removeFromRevisionControl(java.lang.String name, boolean deleteWorkingFiles, boolean reportInstantError) throws SVNException- Throws:
SVNException
-
extendLockToTree
public void extendLockToTree() throws SVNException- Throws:
SVNException
-
foldScheduling
public void foldScheduling(java.lang.String name, java.util.Map attributes, boolean force) throws SVNException- Throws:
SVNException
-
modifyEntry
public SVNEntry modifyEntry(java.lang.String name, java.util.Map attributes, boolean save, boolean force) throws SVNException
- Throws:
SVNException
-
deleteEntry
public void deleteEntry(java.lang.String name) throws SVNException- Throws:
SVNException
-
getEntry
public SVNEntry getEntry(java.lang.String name, boolean hidden) throws SVNException
- Throws:
SVNException
-
getVersionedEntry
public SVNEntry getVersionedEntry(java.lang.String name, boolean hidden) throws SVNException
- Throws:
SVNException
-
addEntry
public SVNEntry addEntry(java.lang.String name) throws SVNException
- Throws:
SVNException
-
entries
public java.util.Iterator entries(boolean hidden) throws SVNException- Throws:
SVNException
-
getEntries
public java.util.Map getEntries() throws SVNException- Throws:
SVNException
-
cleanup
public void cleanup() throws SVNException- Throws:
SVNException
-
hasTextConflict
public boolean hasTextConflict(java.lang.String name) throws SVNException- Throws:
SVNException
-
hasPropConflict
public boolean hasPropConflict(java.lang.String name) throws SVNException- Throws:
SVNException
-
getRoot
public java.io.File getRoot()
-
getAdminTempDirectory
public java.io.File getAdminTempDirectory()
-
getAdminDirectory
public java.io.File getAdminDirectory()
-
getAdminFile
public java.io.File getAdminFile(java.lang.String name)
-
getFile
public java.io.File getFile(java.lang.String name)
-
getWCAccess
public SVNWCAccess getWCAccess()
-
setWCAccess
public void setWCAccess(SVNWCAccess wcAccess)
-
closeVersionedProperties
public void closeVersionedProperties()
-
closeWCProperties
public void closeWCProperties()
-
closeEntries
public void closeEntries()
-
getBaseFile
public java.io.File getBaseFile(java.lang.String name, boolean tmp)
-
getWorkingCopyFormatVersion
public int getWorkingCopyFormatVersion()
-
setWorkingCopyFormatVersion
public void setWorkingCopyFormatVersion(int wcFormatVersion)
-
close
public void close()
-
writeEntries
protected abstract void writeEntries(java.io.Writer writer) throws java.io.IOException, SVNException- Throws:
java.io.IOExceptionSVNException
-
fetchEntries
protected abstract java.util.Map fetchEntries() throws SVNException- Throws:
SVNException
-
readExtraOptions
protected abstract boolean readExtraOptions(java.io.BufferedReader reader, SVNEntry entry) throws SVNException, java.io.IOException- Throws:
SVNExceptionjava.io.IOException
-
writeExtraOptions
protected abstract int writeExtraOptions(java.io.Writer writer, java.lang.String entryName, SVNEntry entry, int emptyFields) throws SVNException, java.io.IOException- Throws:
SVNExceptionjava.io.IOException
-
getBasePropertiesFile
public java.io.File getBasePropertiesFile(java.lang.String name, boolean tmp)
-
getRevertPropertiesFile
public java.io.File getRevertPropertiesFile(java.lang.String name, boolean tmp)
-
getPropertiesFile
public java.io.File getPropertiesFile(java.lang.String name, boolean tmp)
-
loadEntries
protected java.util.Map loadEntries() throws SVNException- Throws:
SVNException
-
getBasePropertiesStorage
protected java.util.Map getBasePropertiesStorage(boolean create)
-
getRevertPropertiesStorage
protected java.util.Map getRevertPropertiesStorage(boolean create)
-
getPropertiesStorage
protected java.util.Map getPropertiesStorage(boolean create)
-
getWCPropertiesStorage
protected java.util.Map getWCPropertiesStorage(boolean create)
-
asString
public static java.lang.String asString(java.lang.String[] array, java.lang.String delimiter)
-
fromString
public static java.lang.String[] fromString(java.lang.String str, java.lang.String delimiter)
-
commit
public void commit(java.lang.String target, SVNCommitInfo info, SVNProperties wcPropChanges, boolean removeLock, boolean recursive, boolean removeChangelist, java.util.Collection explicitCommitPaths, ISVNCommitParameters params) throws SVNException- Throws:
SVNException
-
walkThisDirectory
public void walkThisDirectory(ISVNEntryHandler handler, boolean showHidden, SVNDepth depth) throws SVNException
- Throws:
SVNException
-
setCommitParameters
public void setCommitParameters(ISVNCommitParameters commitParameters)
-
setLocked
protected void setLocked(boolean locked)
-
destroyAdminArea
private void destroyAdminArea() throws SVNException- Throws:
SVNException
-
markLogProcessed
private static void markLogProcessed(java.io.File logFile) throws SVNException- Throws:
SVNException
-
compareAndVerify
private boolean compareAndVerify(java.io.File text, java.io.File baseFile, boolean compareTextBase, boolean checksum) throws SVNException- Throws:
SVNException
-
resolveDefaults
private static void resolveDefaults(java.util.Map entries) throws SVNException- Throws:
SVNException
-
formatBaseProperties
protected abstract SVNVersionedProperties formatBaseProperties(SVNProperties srcProperties)
-
formatProperties
protected abstract SVNVersionedProperties formatProperties(SVNEntry entry, SVNProperties srcProperties)
-
createFormatFile
protected void createFormatFile(java.io.File formatFile, boolean createMyself) throws SVNException- Throws:
SVNException
-
formatWC
public SVNAdminArea formatWC(SVNAdminArea adminArea) throws SVNException
- Throws:
SVNException
-
handleCharsetProperty
private void handleCharsetProperty(SVNAdminArea adminArea, SVNLog log, SVNEntry entry, SVNVersionedProperties baseProps) throws SVNException
- Throws:
SVNException
-
handlePropTime
private void handlePropTime(SVNLog log, SVNEntry entry) throws SVNException
- Throws:
SVNException
-
postUpgradeFormat
public void postUpgradeFormat(int format) throws SVNException- Throws:
SVNException
-
createEntryHashMap
protected SVNHashMap createEntryHashMap(java.util.Map map)
-
getObjectsPool
public SVNObjectsPool getObjectsPool()
-
-