Class Mergeinfo

  • All Implemented Interfaces:
    java.io.Serializable

    public class Mergeinfo
    extends java.lang.Object
    implements java.io.Serializable
    Merge history for a path.
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Mergeinfo.LogKind
      Constants to specify which collection of revisions to report in getMergeinfoLog.
    • Constructor Summary

      Constructors 
      Constructor Description
      Mergeinfo()  
      Mergeinfo​(java.lang.String mergeinfo)
      Create and populate an instance using the contents of the svn:mergeinfo property.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addRevisionRange​(java.lang.String mergeSrc, RevisionRange range)
      Add a revision range to the merged revisions for a path.
      void addRevisions​(java.lang.String mergeSrc, java.util.List<RevisionRange> ranges)
      Add one or more RevisionRange objects to merge info.
      java.util.Set<java.lang.String> getPaths()
      Get the merge source URLs.
      java.util.List<RevisionRange> getRevisionRange​(java.lang.String mergeSrc)
      Get the RevisionRange objects for the specified merge source URL
      java.util.List<RevisionRange> getRevisions​(java.lang.String mergeSrc)
      Get the revision ranges for the specified merge source URL.
      void loadFromMergeinfoProperty​(java.lang.String mergeinfo)
      Parse the svn:mergeinfo property to populate the merge source URLs and revision ranges of this instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Mergeinfo

        public Mergeinfo()
      • Mergeinfo

        public Mergeinfo​(java.lang.String mergeinfo)
        Create and populate an instance using the contents of the svn:mergeinfo property.
        Parameters:
        mergeinfo - svn:mergeinfo property value.
    • Method Detail

      • addRevisions

        public void addRevisions​(java.lang.String mergeSrc,
                                 java.util.List<RevisionRange> ranges)
        Add one or more RevisionRange objects to merge info. If the merge source is already stored, the list of revisions is replaced.
        Parameters:
        mergeSrc - The merge source URL.
        ranges - RevisionRange objects to add.
        Throws:
        SubversionException - If range list contains objects of type other than RevisionRange.
      • addRevisionRange

        public void addRevisionRange​(java.lang.String mergeSrc,
                                     RevisionRange range)
        Add a revision range to the merged revisions for a path. If the merge source already has associated revision ranges, add the revision range to the existing list.
        Parameters:
        mergeSrc - The merge source URL.
        range - The revision range to add.
      • getPaths

        public java.util.Set<java.lang.String> getPaths()
        Get the merge source URLs.
        Returns:
        The merge source URLs.
      • getRevisions

        public java.util.List<RevisionRange> getRevisions​(java.lang.String mergeSrc)
        Get the revision ranges for the specified merge source URL.
        Parameters:
        mergeSrc - The merge source URL, or null.
        Returns:
        List of RevisionRange objects, or null.
      • getRevisionRange

        public java.util.List<RevisionRange> getRevisionRange​(java.lang.String mergeSrc)
        Get the RevisionRange objects for the specified merge source URL
        Parameters:
        mergeSrc - The merge source URL, or null.
        Returns:
        Array of RevisionRange objects, or null.
      • loadFromMergeinfoProperty

        public void loadFromMergeinfoProperty​(java.lang.String mergeinfo)
        Parse the svn:mergeinfo property to populate the merge source URLs and revision ranges of this instance.
        Parameters:
        mergeinfo - svn:mergeinfo property value.