Class Mergeinfo
java.lang.Object
org.apache.subversion.javahl.types.Mergeinfo
- All Implemented Interfaces:
Serializable
public class Mergeinfo extends Object implements Serializable
Merge history for a path.
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMergeinfo.InheritanceThe three ways to request mergeinfo affecting a given path inISVNRemote.getMergeinfo(java.lang.Iterable<java.lang.String>, long, org.apache.subversion.javahl.types.Mergeinfo.Inheritance, boolean).static classMergeinfo.LogKindConstants to specify which collection of revisions to report in getMergeinfoLog. -
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidaddRevisionRange(String mergeSrc, RevisionRange range)Add a revision range to the merged revisions for a path.voidaddRevisions(String mergeSrc, List<RevisionRange> ranges)Add one or more RevisionRange objects to merge info.voidaddRevisions(String mergeSrc, RevisionRangeList ranges)Set<String>getPaths()Get the merge source URLs.List<RevisionRange>getRevisionRange(String mergeSrc)Get the RevisionRange objects for the specified merge source URLRevisionRangeListgetRevisionRangeList(String mergeSrc)Like#getReivsionRange, but returns aRevisionRangeList.List<RevisionRange>getRevisions(String mergeSrc)Get the revision ranges for the specified merge source URL.voidloadFromMergeinfoProperty(String mergeinfo)Parse thesvn:mergeinfoproperty to populate the merge source URLs and revision ranges of this instance.
-
Constructor Details
-
Method Details
-
addRevisions
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.
-
addRevisions
-
addRevisionRange
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
Get the merge source URLs.- Returns:
- The merge source URLs.
-
getRevisions
Get the revision ranges for the specified merge source URL.- Parameters:
mergeSrc- The merge source URL, ornull.- Returns:
- List of RevisionRange objects, or
null.
-
getRevisionRange
Get the RevisionRange objects for the specified merge source URL- Parameters:
mergeSrc- The merge source URL, ornull.- Returns:
- Array of RevisionRange objects, or
null.
-
getRevisionRangeList
Like#getReivsionRange, but returns aRevisionRangeList. -
loadFromMergeinfoProperty
Parse thesvn:mergeinfoproperty to populate the merge source URLs and revision ranges of this instance.- Parameters:
mergeinfo-svn:mergeinfoproperty value.
-