Class SVNXMLAdminArea
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.wc.admin.SVNAdminArea
-
- org.tmatesoft.svn.core.internal.wc.admin.SVNXMLAdminArea
-
public class SVNXMLAdminArea extends SVNAdminArea
- Version:
- 1.3
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Set
BOOLEAN_PROPERTIES
private static java.util.Set
INAPPLICABLE_PROPERTIES
private java.io.File
myEntriesFile
private java.io.File
myLockFile
private static java.lang.String
THIS_DIR
static int
WC_FORMAT
-
Fields inherited from class org.tmatesoft.svn.core.internal.wc.admin.SVNAdminArea
ADM_KILLME, myBaseProperties, myEntries, myProperties, myWasLocked, myWCProperties
-
-
Constructor Summary
Constructors Constructor Description SVNXMLAdminArea(java.io.File dir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTreeConflict(SVNTreeConflictDescription conflict)
SVNAdminArea
createVersionedDirectory(java.io.File dir, java.lang.String url, java.lang.String rootURL, java.lang.String uuid, long revNumber, boolean createMyself, SVNDepth depth)
SVNTreeConflictDescription
deleteTreeConflict(java.lang.String name)
protected java.util.Map
fetchEntries()
protected SVNVersionedProperties
formatBaseProperties(SVNProperties srcProperties)
protected SVNVersionedProperties
formatProperties(SVNEntry entry, SVNProperties srcProperties)
SVNVersionedProperties
getBaseProperties(java.lang.String name)
int
getFormatVersion()
SVNVersionedProperties
getProperties(java.lang.String name)
SVNVersionedProperties
getRevertProperties(java.lang.String name)
java.lang.String
getThisDirName()
SVNTreeConflictDescription
getTreeConflict(java.lang.String name)
SVNVersionedProperties
getWCProperties(java.lang.String name)
void
handleKillMe()
boolean
hasProperties(java.lang.String entryName)
boolean
hasPropModifications(java.lang.String name)
boolean
hasTextModifications(java.lang.String name, boolean forceComparison)
boolean
hasTreeConflict(java.lang.String name)
(package private) boolean
innerLock()
void
installProperties(java.lang.String name, SVNProperties baseProps, SVNProperties workingProps, SVNLog log, boolean writeBaseProps, boolean close)
protected boolean
isEntryPropertyApplicable(java.lang.String propName)
boolean
isLocked()
boolean
isVersioned()
boolean
lock(boolean stealLock)
void
postCommit(java.lang.String fileName, long revisionNumber, boolean implicit, boolean rerun, SVNErrorCode errorCode)
private SVNProperties
readBaseProperties(java.lang.String name)
protected boolean
readExtraOptions(java.io.BufferedReader reader, SVNEntry entryAttrs)
private SVNProperties
readProperties(java.lang.String name)
private SVNProperties
readRevertProperties(java.lang.String name)
private SVNProperties
readWCProperties(java.lang.String name)
private void
saveBaseProperties(SVNLog log)
void
saveEntries(boolean close)
private void
saveProperties(SVNLog log)
void
saveVersionedProperties(SVNLog log, boolean close)
void
saveWCProperties(boolean close)
void
setFileExternalLocation(java.lang.String name, SVNURL url, SVNRevision pegRevision, SVNRevision revision, SVNURL reposRootURL)
boolean
unlock()
protected void
writeEntries(java.io.Writer writer)
protected int
writeExtraOptions(java.io.Writer writer, java.lang.String entryName, SVNEntry Attrs, int emptyFields)
-
Methods inherited from class org.tmatesoft.svn.core.internal.wc.admin.SVNAdminArea
addEntry, asString, cleanup, close, closeEntries, closeVersionedProperties, closeWCProperties, commit, createEntryHashMap, createFormatFile, deleteEntry, entries, extendLockToTree, foldScheduling, formatWC, fromString, getAdminDirectory, getAdminFile, getAdminTempDirectory, getBaseFile, getBaseFileForReading, getBaseFileForWriting, getBasePropertiesFile, getBasePropertiesStorage, getEntries, getEntry, getFile, getLog, getObjectsPool, getPropertiesFile, getPropertiesStorage, getPropertyTime, getRelativePath, getRevertPropertiesFile, getRevertPropertiesStorage, getRoot, getVersionedEntry, getWCAccess, getWCPropertiesStorage, getWorkingCopyFormatVersion, hasPropConflict, hasTextConflict, hasTextModifications, hasVersionedFileTextChanges, isKillMe, isSafeCleanup, loadEntries, markResolved, mergeProperties, mergeProperties, mergeText, modifyEntry, postUpgradeFormat, removeFromRevisionControl, restoreFile, runLogs, runLogs, setCommitParameters, setLocked, setSafeCleanup, setWCAccess, setWorkingCopyFormatVersion, tweakEntry, updateURL, walkThisDirectory
-
-
-
-
Field Detail
-
WC_FORMAT
public static final int WC_FORMAT
- See Also:
- Constant Field Values
-
THIS_DIR
private static final java.lang.String THIS_DIR
- See Also:
- Constant Field Values
-
BOOLEAN_PROPERTIES
private static final java.util.Set BOOLEAN_PROPERTIES
-
INAPPLICABLE_PROPERTIES
private static final java.util.Set INAPPLICABLE_PROPERTIES
-
myLockFile
private java.io.File myLockFile
-
myEntriesFile
private java.io.File myEntriesFile
-
-
Method Detail
-
saveProperties
private void saveProperties(SVNLog log) throws SVNException
- Throws:
SVNException
-
saveBaseProperties
private void saveBaseProperties(SVNLog log) throws SVNException
- Throws:
SVNException
-
saveWCProperties
public void saveWCProperties(boolean close) throws SVNException
- Specified by:
saveWCProperties
in classSVNAdminArea
- Throws:
SVNException
-
getBaseProperties
public SVNVersionedProperties getBaseProperties(java.lang.String name) throws SVNException
- Specified by:
getBaseProperties
in classSVNAdminArea
- Throws:
SVNException
-
getRevertProperties
public SVNVersionedProperties getRevertProperties(java.lang.String name) throws SVNException
- Specified by:
getRevertProperties
in classSVNAdminArea
- Throws:
SVNException
-
getProperties
public SVNVersionedProperties getProperties(java.lang.String name) throws SVNException
- Specified by:
getProperties
in classSVNAdminArea
- Throws:
SVNException
-
getWCProperties
public SVNVersionedProperties getWCProperties(java.lang.String name) throws SVNException
- Specified by:
getWCProperties
in classSVNAdminArea
- Throws:
SVNException
-
readProperties
private SVNProperties readProperties(java.lang.String name) throws SVNException
- Throws:
SVNException
-
readBaseProperties
private SVNProperties readBaseProperties(java.lang.String name) throws SVNException
- Throws:
SVNException
-
readRevertProperties
private SVNProperties readRevertProperties(java.lang.String name) throws SVNException
- Throws:
SVNException
-
readWCProperties
private SVNProperties readWCProperties(java.lang.String name) throws SVNException
- Throws:
SVNException
-
saveEntries
public void saveEntries(boolean close) throws SVNException
- Specified by:
saveEntries
in classSVNAdminArea
- Throws:
SVNException
-
saveVersionedProperties
public void saveVersionedProperties(SVNLog log, boolean close) throws SVNException
- Specified by:
saveVersionedProperties
in classSVNAdminArea
- Throws:
SVNException
-
installProperties
public void installProperties(java.lang.String name, SVNProperties baseProps, SVNProperties workingProps, SVNLog log, boolean writeBaseProps, boolean close) throws SVNException
- Specified by:
installProperties
in classSVNAdminArea
- Throws:
SVNException
-
fetchEntries
protected java.util.Map fetchEntries() throws SVNException
- Specified by:
fetchEntries
in classSVNAdminArea
- Throws:
SVNException
-
getThisDirName
public java.lang.String getThisDirName()
- Specified by:
getThisDirName
in classSVNAdminArea
-
writeEntries
protected void writeEntries(java.io.Writer writer) throws java.io.IOException, SVNException
- Specified by:
writeEntries
in classSVNAdminArea
- Throws:
java.io.IOException
SVNException
-
hasPropModifications
public boolean hasPropModifications(java.lang.String name) throws SVNException
- Specified by:
hasPropModifications
in classSVNAdminArea
- Throws:
SVNException
-
hasTextModifications
public boolean hasTextModifications(java.lang.String name, boolean forceComparison) throws SVNException
- Overrides:
hasTextModifications
in classSVNAdminArea
- Throws:
SVNException
-
hasProperties
public boolean hasProperties(java.lang.String entryName) throws SVNException
- Specified by:
hasProperties
in classSVNAdminArea
- Throws:
SVNException
-
lock
public boolean lock(boolean stealLock) throws SVNException
- Specified by:
lock
in classSVNAdminArea
- Throws:
SVNException
-
innerLock
boolean innerLock() throws SVNException
- Throws:
SVNException
-
unlock
public boolean unlock() throws SVNException
- Specified by:
unlock
in classSVNAdminArea
- Throws:
SVNException
-
isVersioned
public boolean isVersioned()
- Specified by:
isVersioned
in classSVNAdminArea
-
createVersionedDirectory
public 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
- Specified by:
createVersionedDirectory
in classSVNAdminArea
- Throws:
SVNException
-
isLocked
public boolean isLocked()
- Specified by:
isLocked
in classSVNAdminArea
-
getFormatVersion
public int getFormatVersion()
- Specified by:
getFormatVersion
in classSVNAdminArea
-
formatBaseProperties
protected SVNVersionedProperties formatBaseProperties(SVNProperties srcProperties)
- Specified by:
formatBaseProperties
in classSVNAdminArea
-
formatProperties
protected SVNVersionedProperties formatProperties(SVNEntry entry, SVNProperties srcProperties)
- Specified by:
formatProperties
in classSVNAdminArea
-
handleKillMe
public void handleKillMe() throws SVNException
- Specified by:
handleKillMe
in classSVNAdminArea
- Throws:
SVNException
-
postCommit
public void postCommit(java.lang.String fileName, long revisionNumber, boolean implicit, boolean rerun, SVNErrorCode errorCode) throws SVNException
- Specified by:
postCommit
in classSVNAdminArea
- Throws:
SVNException
-
hasTreeConflict
public boolean hasTreeConflict(java.lang.String name) throws SVNException
- Specified by:
hasTreeConflict
in classSVNAdminArea
- Throws:
SVNException
-
getTreeConflict
public SVNTreeConflictDescription getTreeConflict(java.lang.String name) throws SVNException
- Specified by:
getTreeConflict
in classSVNAdminArea
- Throws:
SVNException
-
addTreeConflict
public void addTreeConflict(SVNTreeConflictDescription conflict) throws SVNException
- Specified by:
addTreeConflict
in classSVNAdminArea
- Throws:
SVNException
-
deleteTreeConflict
public SVNTreeConflictDescription deleteTreeConflict(java.lang.String name) throws SVNException
- Specified by:
deleteTreeConflict
in classSVNAdminArea
- Throws:
SVNException
-
setFileExternalLocation
public void setFileExternalLocation(java.lang.String name, SVNURL url, SVNRevision pegRevision, SVNRevision revision, SVNURL reposRootURL) throws SVNException
- Specified by:
setFileExternalLocation
in classSVNAdminArea
- Throws:
SVNException
-
isEntryPropertyApplicable
protected boolean isEntryPropertyApplicable(java.lang.String propName)
- Specified by:
isEntryPropertyApplicable
in classSVNAdminArea
-
readExtraOptions
protected boolean readExtraOptions(java.io.BufferedReader reader, SVNEntry entryAttrs) throws SVNException, java.io.IOException
- Specified by:
readExtraOptions
in classSVNAdminArea
- Throws:
SVNException
java.io.IOException
-
writeExtraOptions
protected int writeExtraOptions(java.io.Writer writer, java.lang.String entryName, SVNEntry Attrs, int emptyFields) throws SVNException, java.io.IOException
- Specified by:
writeExtraOptions
in classSVNAdminArea
- Throws:
SVNException
java.io.IOException
-
-