Class SVNAdminArea
java.lang.Object
org.tmatesoft.svn.core.internal.wc.admin.SVNAdminArea
- Direct Known Subclasses:
SVNAdminArea14,SVNXMLAdminArea
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprivate Fileprotected Mapprivate ISVNCommitParametersprivate Fileprotected Mapprotected Mapprivate Mapprotected booleanprivate SVNWCAccessprivate intprotected Mapprivate static boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddTreeConflict(SVNTreeConflictDescription conflict) static Stringvoidcleanup()voidclose()voidvoidvoidvoidcommit(String target, SVNCommitInfo info, SVNProperties wcPropChanges, boolean removeLock, boolean recursive, boolean removeChangelist, Collection explicitCommitPaths, ISVNCommitParameters params) private booleancompareAndVerify(File text, File baseFile, boolean compareTextBase, boolean checksum) protected SVNHashMapcreateEntryHashMap(Map map) protected voidcreateFormatFile(File formatFile, boolean createMyself) abstract SVNAdminAreacreateVersionedDirectory(File dir, String url, String rootURL, String uuid, long revNumber, boolean createMyself, SVNDepth depth) voiddeleteEntry(String name) abstract SVNTreeConflictDescriptiondeleteTreeConflict(String name) private voidentries(boolean hidden) voidprotected abstract MapvoidfoldScheduling(String name, Map attributes, boolean force) protected abstract SVNVersionedPropertiesformatBaseProperties(SVNProperties srcProperties) protected abstract SVNVersionedPropertiesformatProperties(SVNEntry entry, SVNProperties srcProperties) formatWC(SVNAdminArea adminArea) static String[]fromString(String str, String delimiter) getAdminFile(String name) getBaseFile(String name, boolean tmp) getBaseFileForReading(String name, boolean tmp) getBaseFileForWriting(String name) abstract SVNVersionedPropertiesgetBaseProperties(String name) getBasePropertiesFile(String name, boolean tmp) protected MapgetBasePropertiesStorage(boolean create) abstract intgetLog()abstract SVNVersionedPropertiesgetProperties(String name) getPropertiesFile(String name, boolean tmp) protected MapgetPropertiesStorage(boolean create) getPropertyTime(String name) getRelativePath(SVNAdminArea anchor) abstract SVNVersionedPropertiesgetRevertProperties(String name) getRevertPropertiesFile(String name, boolean tmp) protected MapgetRevertPropertiesStorage(boolean create) getRoot()abstract Stringabstract SVNTreeConflictDescriptiongetTreeConflict(String name) getVersionedEntry(String name, boolean hidden) abstract SVNVersionedPropertiesgetWCProperties(String name) protected MapgetWCPropertiesStorage(boolean create) intprivate voidhandleCharsetProperty(SVNAdminArea adminArea, SVNLog log, SVNEntry entry, SVNVersionedProperties baseProps) abstract voidprivate voidhandlePropTime(SVNLog log, SVNEntry entry) booleanhasPropConflict(String name) abstract booleanhasProperties(String entryName) abstract booleanhasPropModifications(String entryName) booleanhasTextConflict(String name) booleanhasTextModifications(String name, boolean forceComparision) booleanhasTextModifications(String name, boolean forceComparison, boolean compareTextBase, boolean compareChecksum) abstract booleanhasTreeConflict(String name) booleanhasVersionedFileTextChanges(File file, File baseFile, boolean compareTextBase) abstract voidinstallProperties(String name, SVNProperties baseProps, SVNProperties workingProps, SVNLog log, boolean writeBaseProps, boolean close) protected abstract booleanbooleanisKillMe()abstract booleanisLocked()static booleanabstract booleanprotected Mapabstract booleanlock(boolean stealLock) private static voidmarkLogProcessed(File logFile) booleanmarkResolved(String name, boolean text, boolean props, SVNConflictChoice conflictChoice) mergeProperties(String name, SVNProperties serverBaseProps, SVNProperties propDiff, String localLabel, String latestLabel, boolean baseMerge, boolean dryRun, SVNLog log) mergeProperties(String name, SVNProperties serverBaseProps, SVNProperties baseProps, SVNProperties workingProps, SVNProperties propDiff, String localLabel, String latestLabel, boolean baseMerge, boolean dryRun, SVNLog log) mergeText(String localPath, File base, File latest, File copyFromText, String localLabel, String baseLabel, String latestLabel, SVNProperties propChanges, boolean dryRun, SVNDiffOptions options, SVNLog log) modifyEntry(String name, Map attributes, boolean save, boolean force) abstract voidpostCommit(String fileName, long revisionNumber, boolean implicit, boolean rerun, SVNErrorCode errorCode) voidpostUpgradeFormat(int format) protected abstract booleanreadExtraOptions(BufferedReader reader, SVNEntry entry) voidremoveFromRevisionControl(String name, boolean deleteWorkingFiles, boolean reportInstantError) private static voidresolveDefaults(Map entries) voidrestoreFile(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(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(String name, String newURL, String reposRoot, long newRevision, boolean remove) abstract booleanunlock()voidvoidwalkThisDirectory(ISVNEntryHandler handler, boolean showHidden, SVNDepth depth) protected abstract voidwriteEntries(Writer writer) protected abstract intwriteExtraOptions(Writer writer, String entryName, SVNEntry entry, int emptyFields)
-
Field Details
-
ADM_KILLME
- See Also:
-
ourIsCleanupSafe
private static volatile boolean ourIsCleanupSafe -
myBaseProperties
-
myProperties
-
myWCProperties
-
myEntries
-
myWasLocked
protected boolean myWasLocked -
myCommitParameters
-
myRevertProperties
-
myDirectory
-
myWCAccess
-
myAdminRoot
-
myWCFormatVersion
private int myWCFormatVersion
-
-
Constructor Details
-
SVNAdminArea
-
-
Method Details
-
setSafeCleanup
public static void setSafeCleanup(boolean safe) -
isSafeCleanup
public static boolean isSafeCleanup() -
isLocked
- Throws:
SVNException
-
isVersioned
public abstract boolean isVersioned() -
isEntryPropertyApplicable
-
lock
- Throws:
SVNException
-
unlock
- Throws:
SVNException
-
getBaseProperties
- Throws:
SVNException
-
getRevertProperties
- Throws:
SVNException
-
getWCProperties
- Throws:
SVNException
-
getProperties
- Throws:
SVNException
-
saveVersionedProperties
- Throws:
SVNException
-
installProperties
public abstract void installProperties(String name, SVNProperties baseProps, SVNProperties workingProps, SVNLog log, boolean writeBaseProps, boolean close) throws SVNException - Throws:
SVNException
-
saveWCProperties
- Throws:
SVNException
-
saveEntries
- Throws:
SVNException
-
getThisDirName
-
hasPropModifications
- Throws:
SVNException
-
hasProperties
- Throws:
SVNException
-
createVersionedDirectory
public abstract SVNAdminArea createVersionedDirectory(File dir, String url, String rootURL, String uuid, long revNumber, boolean createMyself, SVNDepth depth) throws SVNException - Throws:
SVNException
-
postCommit
public abstract void postCommit(String fileName, long revisionNumber, boolean implicit, boolean rerun, SVNErrorCode errorCode) throws SVNException - Throws:
SVNException
-
handleKillMe
- Throws:
SVNException
-
hasTreeConflict
- Throws:
SVNException
-
getTreeConflict
- Throws:
SVNException
-
addTreeConflict
- Throws:
SVNException
-
deleteTreeConflict
- Throws:
SVNException
-
setFileExternalLocation
public abstract void setFileExternalLocation(String name, SVNURL url, SVNRevision pegRevision, SVNRevision revision, SVNURL reposRootURL) throws SVNException - Throws:
SVNException
-
getFormatVersion
public abstract int getFormatVersion() -
updateURL
- Throws:
SVNException
-
hasTextModifications
- Throws:
SVNException
-
hasTextModifications
public boolean hasTextModifications(String name, boolean forceComparison, boolean compareTextBase, boolean compareChecksum) throws SVNException - Throws:
SVNException
-
hasVersionedFileTextChanges
public boolean hasVersionedFileTextChanges(File file, File baseFile, boolean compareTextBase) throws SVNException - Throws:
SVNException
-
getRelativePath
-
tweakEntry
public boolean tweakEntry(String name, String newURL, String reposRoot, long newRevision, boolean remove) throws SVNException - Throws:
SVNException
-
isKillMe
public boolean isKillMe() -
markResolved
public boolean markResolved(String name, boolean text, boolean props, SVNConflictChoice conflictChoice) throws SVNException - Throws:
SVNException
-
restoreFile
- Throws:
SVNException
-
mergeProperties
public SVNStatusType mergeProperties(String name, SVNProperties serverBaseProps, SVNProperties propDiff, String localLabel, String latestLabel, boolean baseMerge, boolean dryRun, SVNLog log) throws SVNException - Throws:
SVNException
-
mergeProperties
public SVNStatusType mergeProperties(String name, SVNProperties serverBaseProps, SVNProperties baseProps, SVNProperties workingProps, SVNProperties propDiff, String localLabel, String latestLabel, boolean baseMerge, boolean dryRun, SVNLog log) throws SVNException - Throws:
SVNException
-
mergeText
public SVNStatusType mergeText(String localPath, File base, File latest, File copyFromText, String localLabel, String baseLabel, String latestLabel, SVNProperties propChanges, boolean dryRun, SVNDiffOptions options, SVNLog log) throws SVNException - Throws:
SVNException
-
getBaseFileForReading
- Throws:
SVNException
-
getBaseFileForWriting
- Throws:
SVNException
-
getPropertyTime
-
getLog
-
runLogs
- Throws:
SVNException
-
runLogs
- Throws:
SVNException
-
removeFromRevisionControl
public void removeFromRevisionControl(String name, boolean deleteWorkingFiles, boolean reportInstantError) throws SVNException - Throws:
SVNException
-
extendLockToTree
- Throws:
SVNException
-
foldScheduling
- Throws:
SVNException
-
modifyEntry
public SVNEntry modifyEntry(String name, Map attributes, boolean save, boolean force) throws SVNException - Throws:
SVNException
-
deleteEntry
- Throws:
SVNException
-
getEntry
- Throws:
SVNException
-
getVersionedEntry
- Throws:
SVNException
-
addEntry
- Throws:
SVNException
-
entries
- Throws:
SVNException
-
getEntries
- Throws:
SVNException
-
cleanup
- Throws:
SVNException
-
hasTextConflict
- Throws:
SVNException
-
hasPropConflict
- Throws:
SVNException
-
getRoot
-
getAdminTempDirectory
-
getAdminDirectory
-
getAdminFile
-
getFile
-
getWCAccess
-
setWCAccess
-
closeVersionedProperties
public void closeVersionedProperties() -
closeWCProperties
public void closeWCProperties() -
closeEntries
public void closeEntries() -
getBaseFile
-
getWorkingCopyFormatVersion
public int getWorkingCopyFormatVersion() -
setWorkingCopyFormatVersion
public void setWorkingCopyFormatVersion(int wcFormatVersion) -
close
public void close() -
writeEntries
- Throws:
IOExceptionSVNException
-
fetchEntries
- Throws:
SVNException
-
readExtraOptions
protected abstract boolean readExtraOptions(BufferedReader reader, SVNEntry entry) throws SVNException, IOException - Throws:
SVNExceptionIOException
-
writeExtraOptions
protected abstract int writeExtraOptions(Writer writer, String entryName, SVNEntry entry, int emptyFields) throws SVNException, IOException - Throws:
SVNExceptionIOException
-
getBasePropertiesFile
-
getRevertPropertiesFile
-
getPropertiesFile
-
loadEntries
- Throws:
SVNException
-
getBasePropertiesStorage
-
getRevertPropertiesStorage
-
getPropertiesStorage
-
getWCPropertiesStorage
-
asString
-
fromString
-
commit
public void commit(String target, SVNCommitInfo info, SVNProperties wcPropChanges, boolean removeLock, boolean recursive, boolean removeChangelist, Collection explicitCommitPaths, ISVNCommitParameters params) throws SVNException - Throws:
SVNException
-
walkThisDirectory
public void walkThisDirectory(ISVNEntryHandler handler, boolean showHidden, SVNDepth depth) throws SVNException - Throws:
SVNException
-
setCommitParameters
-
setLocked
protected void setLocked(boolean locked) -
destroyAdminArea
- Throws:
SVNException
-
markLogProcessed
- Throws:
SVNException
-
compareAndVerify
private boolean compareAndVerify(File text, File baseFile, boolean compareTextBase, boolean checksum) throws SVNException - Throws:
SVNException
-
resolveDefaults
- Throws:
SVNException
-
formatBaseProperties
-
formatProperties
protected abstract SVNVersionedProperties formatProperties(SVNEntry entry, SVNProperties srcProperties) -
createFormatFile
- Throws:
SVNException
-
formatWC
- Throws:
SVNException
-
handleCharsetProperty
private void handleCharsetProperty(SVNAdminArea adminArea, SVNLog log, SVNEntry entry, SVNVersionedProperties baseProps) throws SVNException - Throws:
SVNException
-
handlePropTime
- Throws:
SVNException
-
postUpgradeFormat
- Throws:
SVNException
-
createEntryHashMap
-
getObjectsPool
-