Class Mergeinfo
- java.lang.Object
-
- org.apache.subversion.javahl.types.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.
-
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 URLjava.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 thesvn:mergeinfo
property to populate the merge source URLs and revision ranges of this instance.
-
-
-
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, ornull
.- 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, ornull
.- Returns:
- Array of RevisionRange objects, or
null
.
-
loadFromMergeinfoProperty
public void loadFromMergeinfoProperty(java.lang.String mergeinfo)
Parse thesvn:mergeinfo
property to populate the merge source URLs and revision ranges of this instance.- Parameters:
mergeinfo
-svn:mergeinfo
property value.
-
-