Class SVNMergeInfoUtil


  • public class SVNMergeInfoUtil
    extends java.lang.Object
    Version:
    1.3
    Author:
    TMate Software Ltd.
    • Constructor Detail

      • SVNMergeInfoUtil

        public SVNMergeInfoUtil()
    • Method Detail

      • mergeCatalog

        public static void mergeCatalog​(java.util.Map catalog,
                                        java.util.Map changes)
                                 throws SVNException
        Throws:
        SVNException
      • filterCatalogByRanges

        public static java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​SVNMergeRangeList>> filterCatalogByRanges​(java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​SVNMergeRangeList>> catalog,
                                                                                                                                          long youngestRev,
                                                                                                                                          long oldestRev)
      • filterMergeInfoByRanges

        public static java.util.Map<java.lang.String,​SVNMergeRangeList> filterMergeInfoByRanges​(java.util.Map<java.lang.String,​SVNMergeRangeList> mergeInfo,
                                                                                                      long youngestRev,
                                                                                                      long oldestRev)
      • getRangeEndPoints

        public static long[] getRangeEndPoints​(java.util.Map<?,​SVNMergeRangeList> mergeInfo)
      • elideMergeInfoCatalog

        public static java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​SVNMergeRangeList>> elideMergeInfoCatalog​(java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​SVNMergeRangeList>> mergeInfoCatalog)
                                                                                                                                   throws SVNException
        Throws:
        SVNException
      • adjustMergeInfoSourcePaths

        public static java.util.Map<java.lang.String,​SVNMergeRangeList> adjustMergeInfoSourcePaths​(java.util.Map<java.lang.String,​SVNMergeRangeList> mergeInfo,
                                                                                                         java.lang.String walkPath,
                                                                                                         java.util.Map<java.lang.String,​SVNMergeRangeList> wcMergeInfo)
      • removeEmptyRangeLists

        public static boolean removeEmptyRangeLists​(java.util.Map mergeInfo)
      • combineMergeInfoProperties

        public static java.lang.String combineMergeInfoProperties​(java.lang.String propValue1,
                                                                  java.lang.String propValue2)
                                                           throws SVNException
        Throws:
        SVNException
      • combineForkedMergeInfoProperties

        public static java.lang.String combineForkedMergeInfoProperties​(java.lang.String fromPropValue,
                                                                        java.lang.String workingPropValue,
                                                                        java.lang.String toPropValue)
                                                                 throws SVNException
        Throws:
        SVNException
      • diffMergeInfoProperties

        public static void diffMergeInfoProperties​(java.util.Map deleted,
                                                   java.util.Map added,
                                                   java.lang.String fromPropValue,
                                                   java.util.Map fromMergeInfo,
                                                   java.lang.String toPropValue,
                                                   java.util.Map toMergeInfo)
                                            throws SVNException
        Throws:
        SVNException
      • diffMergeInfo

        public static void diffMergeInfo​(java.util.Map deleted,
                                         java.util.Map added,
                                         java.util.Map from,
                                         java.util.Map to,
                                         boolean considerInheritance)
      • dupCatalog

        public static java.util.Map dupCatalog​(java.util.Map catalog)
      • dupMergeInfo

        public static java.util.Map dupMergeInfo​(java.util.Map srcsToRangeLists,
                                                 java.util.Map target)
      • isNonInheritable

        public static boolean isNonInheritable​(java.util.Map<java.lang.String,​SVNMergeRangeList> mergeInfo)
      • formatMergeInfoCatalogToString

        public static java.lang.String formatMergeInfoCatalogToString​(java.util.Map catalog,
                                                                      java.lang.String keyPrefix,
                                                                      java.lang.String valuePrefix)
        Note: Make sure that this method is used only for making up an error message.
      • formatMergeInfoCatalogToString2

        public static java.lang.String formatMergeInfoCatalogToString2​(java.util.Map<java.io.File,​java.util.Map<java.lang.String,​SVNMergeRangeList>> catalog,
                                                                       java.lang.String keyPrefix,
                                                                       java.lang.String valuePrefix)
      • formatMergeInfoToArray

        public static java.lang.String[] formatMergeInfoToArray​(java.util.Map srcsToRangeLists,
                                                                java.lang.String prefix)
        Each element of the resultant array is formed like this: %s:%ld-%ld,.. where the first %s is a merge src path and %ld-%ld is startRev-endRev merge range.
      • formatMergeInfoToString

        public static java.lang.String formatMergeInfoToString​(java.util.Map srcsToRangeLists,
                                                               java.lang.String prefix)
      • shouldElideMergeInfo

        public static boolean shouldElideMergeInfo​(java.util.Map<java.lang.String,​SVNMergeRangeList> parentMergeInfo,
                                                   java.util.Map<java.lang.String,​SVNMergeRangeList> childMergeInfo,
                                                   java.lang.String pathSuffix)
      • elideMergeInfo

        public static void elideMergeInfo​(java.util.Map parentMergeInfo,
                                          java.util.Map childMergeInfo,
                                          java.io.File path,
                                          java.lang.String pathSuffix,
                                          SVNWCAccess access)
                                   throws SVNException
        Throws:
        SVNException
      • mergeInfoEquals

        public static boolean mergeInfoEquals​(java.util.Map mergeInfo1,
                                              java.util.Map mergeInfo2,
                                              boolean considerInheritance)
      • findMergeSources

        public static java.lang.String[] findMergeSources​(long revision,
                                                          java.util.Map mergeInfo)
      • getInheritableMergeInfo

        public static java.util.Map<java.lang.String,​SVNMergeRangeList> getInheritableMergeInfo​(java.util.Map<java.lang.String,​SVNMergeRangeList> mergeInfo,
                                                                                                      java.lang.String path,
                                                                                                      long startRev,
                                                                                                      long endRev)
      • getInheritableMergeInfo

        public static java.util.Map<java.lang.String,​SVNMergeRangeList> getInheritableMergeInfo​(java.util.Map<java.lang.String,​SVNMergeRangeList> mergeInfo,
                                                                                                      java.lang.String path,
                                                                                                      long startRev,
                                                                                                      long endRev,
                                                                                                      boolean inheritable)
      • removeMergeInfo

        public static java.util.Map removeMergeInfo​(java.util.Map eraser,
                                                    java.util.Map whiteBoard)
      • removeMergeInfo

        public static java.util.Map<java.lang.String,​SVNMergeRangeList> removeMergeInfo​(java.util.Map<java.lang.String,​SVNMergeRangeList> eraser,
                                                                                              java.util.Map<java.lang.String,​SVNMergeRangeList> whiteBoard,
                                                                                              boolean considerInheritance)
      • intersectMergeInfo

        public static java.util.Map intersectMergeInfo​(java.util.Map mergeInfo1,
                                                       java.util.Map mergeInfo2)
      • intersectMergeInfo

        public static java.util.Map<java.lang.String,​SVNMergeRangeList> intersectMergeInfo​(java.util.Map mergeInfo1,
                                                                                                 java.util.Map mergeInfo2,
                                                                                                 boolean considerInheritance)
      • appendSuffix

        public static java.util.Map<java.lang.String,​SVNMergeRangeList> appendSuffix​(java.util.Map<java.lang.String,​SVNMergeRangeList> mergeinfo,
                                                                                           java.lang.String suffix)