Package org.tigris.subversion.javahl
Class Mergeinfo
- java.lang.Object
-
- org.tigris.subversion.javahl.Mergeinfo
-
- All Implemented Interfaces:
java.io.Serializable
public class Mergeinfo extends java.lang.Object implements java.io.Serializable
Merge history for a path.- Since:
- 1.5
- See Also:
- Serialized Form
-
-
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, RevisionRange[] ranges)
Add one or more RevisionRange objects to merge info.java.lang.String[]
getPaths()
Get the merge source URLs.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.
-
-
-
Constructor Detail
-
Mergeinfo
public Mergeinfo()
-
Mergeinfo
public Mergeinfo(java.lang.String mergeinfo)
Create and populate an instance using the contents of thesvn:mergeinfo
property.- Parameters:
mergeinfo
-svn:mergeinfo
property value.
-
Mergeinfo
public Mergeinfo(Mergeinfo aMergeinfo)
A constructor for backward compat.
-
-
Method Detail
-
addRevisions
public void addRevisions(java.lang.String mergeSrc, 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.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 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.
-
-