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 String
private File
protected Map
private ISVNCommitParameters
private File
protected Map
protected Map
private Map
protected boolean
private SVNWCAccess
private int
protected Map
private static boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
addTreeConflict
(SVNTreeConflictDescription conflict) static String
void
cleanup()
void
close()
void
void
void
void
commit
(String target, SVNCommitInfo info, SVNProperties wcPropChanges, boolean removeLock, boolean recursive, boolean removeChangelist, Collection explicitCommitPaths, ISVNCommitParameters params) private boolean
compareAndVerify
(File text, File baseFile, boolean compareTextBase, boolean checksum) protected SVNHashMap
createEntryHashMap
(Map map) protected void
createFormatFile
(File formatFile, boolean createMyself) abstract SVNAdminArea
createVersionedDirectory
(File dir, String url, String rootURL, String uuid, long revNumber, boolean createMyself, SVNDepth depth) void
deleteEntry
(String name) abstract SVNTreeConflictDescription
deleteTreeConflict
(String name) private void
entries
(boolean hidden) void
protected abstract Map
void
foldScheduling
(String name, Map attributes, boolean force) protected abstract SVNVersionedProperties
formatBaseProperties
(SVNProperties srcProperties) protected abstract SVNVersionedProperties
formatProperties
(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 SVNVersionedProperties
getBaseProperties
(String name) getBasePropertiesFile
(String name, boolean tmp) protected Map
getBasePropertiesStorage
(boolean create) abstract int
getLog()
abstract SVNVersionedProperties
getProperties
(String name) getPropertiesFile
(String name, boolean tmp) protected Map
getPropertiesStorage
(boolean create) getPropertyTime
(String name) getRelativePath
(SVNAdminArea anchor) abstract SVNVersionedProperties
getRevertProperties
(String name) getRevertPropertiesFile
(String name, boolean tmp) protected Map
getRevertPropertiesStorage
(boolean create) getRoot()
abstract String
abstract SVNTreeConflictDescription
getTreeConflict
(String name) getVersionedEntry
(String name, boolean hidden) abstract SVNVersionedProperties
getWCProperties
(String name) protected Map
getWCPropertiesStorage
(boolean create) int
private void
handleCharsetProperty
(SVNAdminArea adminArea, SVNLog log, SVNEntry entry, SVNVersionedProperties baseProps) abstract void
private void
handlePropTime
(SVNLog log, SVNEntry entry) boolean
hasPropConflict
(String name) abstract boolean
hasProperties
(String entryName) abstract boolean
hasPropModifications
(String entryName) boolean
hasTextConflict
(String name) boolean
hasTextModifications
(String name, boolean forceComparision) boolean
hasTextModifications
(String name, boolean forceComparison, boolean compareTextBase, boolean compareChecksum) abstract boolean
hasTreeConflict
(String name) boolean
hasVersionedFileTextChanges
(File file, File baseFile, boolean compareTextBase) abstract void
installProperties
(String name, SVNProperties baseProps, SVNProperties workingProps, SVNLog log, boolean writeBaseProps, boolean close) protected abstract boolean
boolean
isKillMe()
abstract boolean
isLocked()
static boolean
abstract boolean
protected Map
abstract boolean
lock
(boolean stealLock) private static void
markLogProcessed
(File logFile) boolean
markResolved
(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 void
postCommit
(String fileName, long revisionNumber, boolean implicit, boolean rerun, SVNErrorCode errorCode) void
postUpgradeFormat
(int format) protected abstract boolean
readExtraOptions
(BufferedReader reader, SVNEntry entry) void
removeFromRevisionControl
(String name, boolean deleteWorkingFiles, boolean reportInstantError) private static void
resolveDefaults
(Map entries) void
restoreFile
(String name) void
runLogs()
void
runLogs
(boolean rerun) abstract void
saveEntries
(boolean close) abstract void
saveVersionedProperties
(SVNLog log, boolean close) abstract void
saveWCProperties
(boolean close) void
setCommitParameters
(ISVNCommitParameters commitParameters) abstract void
setFileExternalLocation
(String name, SVNURL url, SVNRevision pegRevision, SVNRevision revision, SVNURL reposRootURL) protected void
setLocked
(boolean locked) static void
setSafeCleanup
(boolean safe) void
setWCAccess
(SVNWCAccess wcAccess) void
setWorkingCopyFormatVersion
(int wcFormatVersion) boolean
tweakEntry
(String name, String newURL, String reposRoot, long newRevision, boolean remove) abstract boolean
unlock()
void
void
walkThisDirectory
(ISVNEntryHandler handler, boolean showHidden, SVNDepth depth) protected abstract void
writeEntries
(Writer writer) protected abstract int
writeExtraOptions
(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:
IOException
SVNException
-
fetchEntries
- Throws:
SVNException
-
readExtraOptions
protected abstract boolean readExtraOptions(BufferedReader reader, SVNEntry entry) throws SVNException, IOException - Throws:
SVNException
IOException
-
writeExtraOptions
protected abstract int writeExtraOptions(Writer writer, String entryName, SVNEntry entry, int emptyFields) throws SVNException, IOException - Throws:
SVNException
IOException
-
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
-