Class SVNAdminArea

    • Field Detail

      • 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
      • myRevertProperties

        private java.util.Map myRevertProperties
      • myDirectory

        private java.io.File myDirectory
      • myAdminRoot

        private java.io.File myAdminRoot
      • myWCFormatVersion

        private int myWCFormatVersion
    • Constructor Detail

      • SVNAdminArea

        protected SVNAdminArea​(java.io.File dir)
    • Method Detail

      • setSafeCleanup

        public static void setSafeCleanup​(boolean safe)
      • isSafeCleanup

        public static boolean isSafeCleanup()
      • isVersioned

        public abstract boolean isVersioned()
      • isEntryPropertyApplicable

        protected abstract boolean isEntryPropertyApplicable​(java.lang.String name)
      • 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
      • hasTreeConflict

        public abstract boolean hasTreeConflict​(java.lang.String name)
                                         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()
      • 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()
      • removeFromRevisionControl

        public void removeFromRevisionControl​(java.lang.String name,
                                              boolean deleteWorkingFiles,
                                              boolean reportInstantError)
                                       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
      • 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)
      • 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.IOException
        SVNException
      • readExtraOptions

        protected abstract boolean readExtraOptions​(java.io.BufferedReader reader,
                                                    SVNEntry entry)
                                             throws SVNException,
                                                    java.io.IOException
        Throws:
        SVNException
        java.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:
        SVNException
        java.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)
      • 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)
      • setLocked

        protected void setLocked​(boolean locked)
      • 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
      • createFormatFile

        protected void createFormatFile​(java.io.File formatFile,
                                        boolean createMyself)
                                 throws SVNException
        Throws:
        SVNException
      • createEntryHashMap

        protected SVNHashMap createEntryHashMap​(java.util.Map map)