Package org.tigris.subversion.javahl
Class Mergeinfo
java.lang.Object
org.tigris.subversion.javahl.Mergeinfo
- All Implemented Interfaces:
Serializable
public class Mergeinfo extends Object implements Serializable
Merge history for a path.
- Since:
- 1.5
- See Also:
- Serialized Form
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
addRevisionRange(String mergeSrc, RevisionRange range)
Add a revision range to the merged revisions for a path.void
addRevisions(String mergeSrc, RevisionRange[] ranges)
Add one or more RevisionRange objects to merge info.String[]
getPaths()
Get the merge source URLs.RevisionRange[]
getRevisionRange(String mergeSrc)
Get the RevisionRange objects for the specified merge source URLList<RevisionRange>
getRevisions(String mergeSrc)
Get the revision ranges for the specified merge source URL.void
loadFromMergeinfoProperty(String mergeinfo)
Parse thesvn:mergeinfo
property 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.
-
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
.
-
loadFromMergeinfoProperty
Parse thesvn:mergeinfo
property to populate the merge source URLs and revision ranges of this instance.- Parameters:
mergeinfo
-svn:mergeinfo
property value.
-