Class SVNAdminArea14
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.wc.admin.SVNAdminArea
-
- org.tmatesoft.svn.core.internal.wc.admin.SVNAdminArea14
-
- Direct Known Subclasses:
SVNAdminArea15
public class SVNAdminArea14 extends SVNAdminArea
- Version:
- 1.3
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringATTRIBUTE_ABSENTprotected static java.lang.StringATTRIBUTE_COPIEDprotected static java.lang.StringATTRIBUTE_DELETEDprotected static java.lang.StringATTRIBUTE_HAS_PROP_MODSprotected static java.lang.StringATTRIBUTE_HAS_PROPSprotected static java.lang.StringATTRIBUTE_INCOMPLETEprivate static java.util.SetINAPPLICABLE_PROPERTIESprotected static java.lang.StringKILL_ADM_ONLYprivate java.io.FilemyEntriesFileprivate java.io.FilemyLockFilestatic java.lang.String[]ourCachablePropertiesprivate static booleanourIsOptimizedWritingEnabledprotected static java.lang.StringTHIS_DIRstatic intWC_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 SVNAdminArea14(java.io.File dir)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTreeConflict(SVNTreeConflictDescription conflict)protected SVNAdminAreacreateAdminAreaForDir(java.io.File dir)SVNAdminAreacreateVersionedDirectory(java.io.File dir, java.lang.String url, java.lang.String rootURL, java.lang.String uuid, long revNumber, boolean createMyself, SVNDepth depth)SVNTreeConflictDescriptiondeleteTreeConflict(java.lang.String name)protected java.util.MapfetchEntries()protected SVNVersionedPropertiesformatBaseProperties(SVNProperties srcProperties)protected SVNVersionedPropertiesformatProperties(SVNEntry entry, SVNProperties srcProperties)SVNVersionedPropertiesgetBaseProperties(java.lang.String name)static java.lang.String[]getCachableProperties()intgetFormatVersion()SVNVersionedPropertiesgetProperties(java.lang.String name)SVNVersionedPropertiesgetRevertProperties(java.lang.String name)java.lang.StringgetThisDirName()SVNTreeConflictDescriptiongetTreeConflict(java.lang.String name)SVNVersionedPropertiesgetWCProperties(java.lang.String entryName)voidhandleKillMe()booleanhasProperties(java.lang.String name)booleanhasPropModifications(java.lang.String name)booleanhasTreeConflict(java.lang.String name)voidinstallProperties(java.lang.String name, SVNProperties baseProps, SVNProperties workingProps, SVNLog log, boolean writeBaseProps, boolean close)protected booleanisEntryFinished(java.lang.String line)protected booleanisEntryPropertyApplicable(java.lang.String propName)booleanisLocked()booleanisVersioned()booleanlock()booleanlock(boolean stealLock)private voidmakeKillMe(boolean killAdminOnly)protected booleanparseBoolean(java.lang.String line, java.lang.String field)protected java.lang.StringparseString(java.lang.String line)protected java.lang.StringparseValue(java.lang.String line)voidpostCommit(java.lang.String fileName, long revisionNumber, boolean implicit, boolean rerun, SVNErrorCode errorCode)private java.util.MapreadAllWCProperties()protected SVNPropertiesreadBaseProperties(java.lang.String name)protected SVNEntryreadEntry(java.io.BufferedReader reader, int entryNumber)protected booleanreadExtraOptions(java.io.BufferedReader reader, SVNEntry entry)protected SVNPropertiesreadProperties(java.lang.String name)protected SVNPropertiesreadRevertProperties(java.lang.String name)voidsaveEntries(boolean close)voidsaveVersionedProperties(SVNLog log, boolean close)voidsaveWCProperties(boolean close)voidsetFileExternalLocation(java.lang.String name, SVNURL url, SVNRevision pegRevision, SVNRevision revision, SVNURL reposRootURL)static voidsetOptimizedWritingEnabled(boolean enabled)booleanunlock()protected voidwriteEntries(java.io.Writer writer)private voidwriteEntry(java.io.Writer writer, java.lang.String name, SVNEntry entry, SVNEntry rootEntry)protected intwriteExtraOptions(java.io.Writer writer, java.lang.String entryName, SVNEntry entry, int emptyFields)protected booleanwriteRevision(java.io.Writer writer, long revValue, int emptyFields)protected booleanwriteString(java.io.Writer writer, java.lang.String str, int emptyFields)protected booleanwriteTime(java.io.Writer writer, java.lang.String val, int emptyFields)protected booleanwriteValue(java.io.Writer writer, java.lang.String val, 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, 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
-
ourCachableProperties
public static final java.lang.String[] ourCachableProperties
-
ATTRIBUTE_COPIED
protected static final java.lang.String ATTRIBUTE_COPIED
- See Also:
- Constant Field Values
-
ATTRIBUTE_DELETED
protected static final java.lang.String ATTRIBUTE_DELETED
- See Also:
- Constant Field Values
-
ATTRIBUTE_ABSENT
protected static final java.lang.String ATTRIBUTE_ABSENT
- See Also:
- Constant Field Values
-
ATTRIBUTE_INCOMPLETE
protected static final java.lang.String ATTRIBUTE_INCOMPLETE
- See Also:
- Constant Field Values
-
ATTRIBUTE_HAS_PROPS
protected static final java.lang.String ATTRIBUTE_HAS_PROPS
- See Also:
- Constant Field Values
-
ATTRIBUTE_HAS_PROP_MODS
protected static final java.lang.String ATTRIBUTE_HAS_PROP_MODS
- See Also:
- Constant Field Values
-
KILL_ADM_ONLY
protected static final java.lang.String KILL_ADM_ONLY
- See Also:
- Constant Field Values
-
THIS_DIR
protected static final java.lang.String THIS_DIR
- See Also:
- Constant Field Values
-
INAPPLICABLE_PROPERTIES
private static final java.util.Set INAPPLICABLE_PROPERTIES
-
myLockFile
private java.io.File myLockFile
-
myEntriesFile
private java.io.File myEntriesFile
-
ourIsOptimizedWritingEnabled
private static boolean ourIsOptimizedWritingEnabled
-
-
Method Detail
-
setOptimizedWritingEnabled
public static void setOptimizedWritingEnabled(boolean enabled)
-
getCachableProperties
public static java.lang.String[] getCachableProperties()
-
saveWCProperties
public void saveWCProperties(boolean close) throws SVNException- Specified by:
saveWCPropertiesin classSVNAdminArea- Throws:
SVNException
-
getBaseProperties
public SVNVersionedProperties getBaseProperties(java.lang.String name) throws SVNException
- Specified by:
getBasePropertiesin classSVNAdminArea- Throws:
SVNException
-
getRevertProperties
public SVNVersionedProperties getRevertProperties(java.lang.String name) throws SVNException
- Specified by:
getRevertPropertiesin classSVNAdminArea- Throws:
SVNException
-
getProperties
public SVNVersionedProperties getProperties(java.lang.String name) throws SVNException
- Specified by:
getPropertiesin classSVNAdminArea- Throws:
SVNException
-
getWCProperties
public SVNVersionedProperties getWCProperties(java.lang.String entryName) throws SVNException
- Specified by:
getWCPropertiesin classSVNAdminArea- Throws:
SVNException
-
readAllWCProperties
private java.util.Map readAllWCProperties() throws SVNException- Throws:
SVNException
-
readBaseProperties
protected SVNProperties readBaseProperties(java.lang.String name) throws SVNException
- Throws:
SVNException
-
readRevertProperties
protected SVNProperties readRevertProperties(java.lang.String name) throws SVNException
- Throws:
SVNException
-
readProperties
protected SVNProperties readProperties(java.lang.String name) throws SVNException
- Throws:
SVNException
-
saveVersionedProperties
public void saveVersionedProperties(SVNLog log, boolean close) throws SVNException
- Specified by:
saveVersionedPropertiesin 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:
installPropertiesin classSVNAdminArea- Throws:
SVNException
-
handleKillMe
public void handleKillMe() throws SVNException- Specified by:
handleKillMein classSVNAdminArea- Throws:
SVNException
-
saveEntries
public void saveEntries(boolean close) throws SVNException- Specified by:
saveEntriesin classSVNAdminArea- Throws:
SVNException
-
fetchEntries
protected java.util.Map fetchEntries() throws SVNException- Specified by:
fetchEntriesin classSVNAdminArea- Throws:
SVNException
-
readEntry
protected SVNEntry readEntry(java.io.BufferedReader reader, int entryNumber) throws java.io.IOException, SVNException
- Throws:
java.io.IOExceptionSVNException
-
isEntryFinished
protected boolean isEntryFinished(java.lang.String line)
-
parseBoolean
protected boolean parseBoolean(java.lang.String line, java.lang.String field) throws SVNException- Throws:
SVNException
-
parseString
protected java.lang.String parseString(java.lang.String line) throws SVNException- Throws:
SVNException
-
parseValue
protected java.lang.String parseValue(java.lang.String line) throws SVNException- Throws:
SVNException
-
getThisDirName
public java.lang.String getThisDirName()
- Specified by:
getThisDirNamein classSVNAdminArea
-
readExtraOptions
protected boolean readExtraOptions(java.io.BufferedReader reader, SVNEntry entry) throws SVNException, java.io.IOException- Specified by:
readExtraOptionsin classSVNAdminArea- Throws:
SVNExceptionjava.io.IOException
-
writeEntries
protected void writeEntries(java.io.Writer writer) throws java.io.IOException, SVNException- Specified by:
writeEntriesin classSVNAdminArea- Throws:
java.io.IOExceptionSVNException
-
writeEntry
private void writeEntry(java.io.Writer writer, java.lang.String name, SVNEntry entry, SVNEntry rootEntry) throws java.io.IOException, SVNException- Throws:
java.io.IOExceptionSVNException
-
writeExtraOptions
protected int writeExtraOptions(java.io.Writer writer, java.lang.String entryName, SVNEntry entry, int emptyFields) throws SVNException, java.io.IOException- Specified by:
writeExtraOptionsin classSVNAdminArea- Throws:
SVNExceptionjava.io.IOException
-
writeString
protected boolean writeString(java.io.Writer writer, java.lang.String str, int emptyFields) throws java.io.IOException- Throws:
java.io.IOException
-
writeValue
protected boolean writeValue(java.io.Writer writer, java.lang.String val, int emptyFields) throws java.io.IOException- Throws:
java.io.IOException
-
writeTime
protected boolean writeTime(java.io.Writer writer, java.lang.String val, int emptyFields) throws java.io.IOException- Throws:
java.io.IOException
-
writeRevision
protected boolean writeRevision(java.io.Writer writer, long revValue, int emptyFields) throws java.io.IOException- Throws:
java.io.IOException
-
hasPropModifications
public boolean hasPropModifications(java.lang.String name) throws SVNException- Specified by:
hasPropModificationsin classSVNAdminArea- Throws:
SVNException
-
hasProperties
public boolean hasProperties(java.lang.String name) throws SVNException- Specified by:
hasPropertiesin classSVNAdminArea- Throws:
SVNException
-
lock
public boolean lock() throws SVNException- Throws:
SVNException
-
lock
public boolean lock(boolean stealLock) throws SVNException- Specified by:
lockin classSVNAdminArea- Throws:
SVNException
-
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:
createVersionedDirectoryin classSVNAdminArea- Throws:
SVNException
-
formatBaseProperties
protected SVNVersionedProperties formatBaseProperties(SVNProperties srcProperties)
- Specified by:
formatBasePropertiesin classSVNAdminArea
-
formatProperties
protected SVNVersionedProperties formatProperties(SVNEntry entry, SVNProperties srcProperties)
- Specified by:
formatPropertiesin classSVNAdminArea
-
makeKillMe
private void makeKillMe(boolean killAdminOnly) throws SVNException- Throws:
SVNException
-
postCommit
public void postCommit(java.lang.String fileName, long revisionNumber, boolean implicit, boolean rerun, SVNErrorCode errorCode) throws SVNException- Specified by:
postCommitin classSVNAdminArea- Throws:
SVNException
-
unlock
public boolean unlock() throws SVNException- Specified by:
unlockin classSVNAdminArea- Throws:
SVNException
-
isVersioned
public boolean isVersioned()
- Specified by:
isVersionedin classSVNAdminArea
-
isLocked
public boolean isLocked() throws SVNException- Specified by:
isLockedin classSVNAdminArea- Throws:
SVNException
-
hasTreeConflict
public boolean hasTreeConflict(java.lang.String name) throws SVNException- Specified by:
hasTreeConflictin classSVNAdminArea- Throws:
SVNException
-
getTreeConflict
public SVNTreeConflictDescription getTreeConflict(java.lang.String name) throws SVNException
- Specified by:
getTreeConflictin classSVNAdminArea- Throws:
SVNException
-
addTreeConflict
public void addTreeConflict(SVNTreeConflictDescription conflict) throws SVNException
- Specified by:
addTreeConflictin classSVNAdminArea- Throws:
SVNException
-
deleteTreeConflict
public SVNTreeConflictDescription deleteTreeConflict(java.lang.String name) throws SVNException
- Specified by:
deleteTreeConflictin classSVNAdminArea- Throws:
SVNException
-
setFileExternalLocation
public void setFileExternalLocation(java.lang.String name, SVNURL url, SVNRevision pegRevision, SVNRevision revision, SVNURL reposRootURL) throws SVNException- Specified by:
setFileExternalLocationin classSVNAdminArea- Throws:
SVNException
-
getFormatVersion
public int getFormatVersion()
- Specified by:
getFormatVersionin classSVNAdminArea
-
createAdminAreaForDir
protected SVNAdminArea createAdminAreaForDir(java.io.File dir)
-
isEntryPropertyApplicable
protected boolean isEntryPropertyApplicable(java.lang.String propName)
- Specified by:
isEntryPropertyApplicablein classSVNAdminArea
-
-