Package org.tmatesoft.svn.core.wc2
Class SvnLogMergeInfo
- java.lang.Object
-
- org.tmatesoft.svn.core.wc2.SvnOperation<T>
-
- org.tmatesoft.svn.core.wc2.SvnReceivingOperation<SVNLogEntry>
-
- org.tmatesoft.svn.core.wc2.SvnLogMergeInfo
-
- All Implemented Interfaces:
ISvnObjectReceiver<SVNLogEntry>,ISvnOperationOptionsProvider
public class SvnLogMergeInfo extends SvnReceivingOperation<SVNLogEntry>
Creates aSVNLogEntryobject with the revisions merged frommergeSource(as ofmergeSource'spegRevision) intotarget(as oftarget'spegRevision).Targetcan be either URL or working copy path. IfdiscoverChangedPathsis set, then the changed pathsMapargument will be passed to a constructor ofSVNLogEntryon each invocation ofhandler. IfrevisionPropertiesisnull, retrieves all revision properties; else, retrieves only the revision properties named in the array (i.e. retrieves none if the array is empty). Note: this operation requires repository access.SvnOperation.run()throwsSVNExceptionin the following cases:-
exception with
SVNErrorCode.UNSUPPORTED_FEATUREerror code - if the server doesn't support retrieval of mergeinfo- Version:
- 1.7
- Author:
- TMate Software Ltd.
- See Also:
SVNLogEntry
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSvnLogMergeInfo(SvnOperationFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRevisionRange(SvnRevisionRange range)protected voidensureArgumentsAreValid()java.util.Collection<SvnRevisionRange>getRanges()java.lang.String[]getRevisionProperties()Returns all revision ranges for those log should be reported.SvnTargetgetSource()Returns merge source, can represent URL or working copy path.booleanisChangesWorkingCopy()Gets whether the operation changes working copybooleanisDiscoverChangedPaths()Returns whether to report of all changed paths for every revision being processed Iftruethen the changed pathsMapargument will be passed to a constructor ofSVNLogEntry.booleanisFindMerged()Returns whether to report merged revisions or eligible for merge revisionsvoidsetDiscoverChangedPaths(boolean discoverChangedPaths)Sets whether to report of all changed paths for every revision being processed Iftruethen the changed pathsMapargument will be passed to a constructor ofSVNLogEntry.voidsetFindMerged(boolean findMerged)Sets whether to report merged revisions or eligible for merge revisionsvoidsetRevisionProperties(java.lang.String[] revisionProperties)Sets all revision ranges for those log should be reported.voidsetSource(SvnTarget source)Returns merge source, can represent URL or working copy path.-
Methods inherited from class org.tmatesoft.svn.core.wc2.SvnReceivingOperation
first, getReceiver, initDefaults, last, receive, run, setReceiver
-
Methods inherited from class org.tmatesoft.svn.core.wc2.SvnOperation
addTarget, cancel, ensureEnoughTargets, ensureHomohenousTargets, getApplicableChangelists, getAuthenticationManager, getCanceller, getDepth, getEventHandler, getFirstTarget, getMaximumTargetsCount, getMinimumTargetsCount, getOperationalWorkingCopy, getOperationFactory, getOptions, getRepositoryPool, getRevision, getSqliteJournalMode, getTargets, hasFileTargets, hasLocalTargets, hasRemoteTargets, isCancelled, isSleepForTimestamp, isUseParentWcFormat, needsHomohenousTargets, run, setApplicalbeChangelists, setDepth, setRevision, setSingleTarget, setSleepForTimestamp, setSqliteJournalMode
-
-
-
-
Constructor Detail
-
SvnLogMergeInfo
protected SvnLogMergeInfo(SvnOperationFactory factory)
-
-
Method Detail
-
isFindMerged
public boolean isFindMerged()
Returns whether to report merged revisions or eligible for merge revisions- Returns:
trueif should report merged revisions,falseif should report eligible for merge
-
setFindMerged
public void setFindMerged(boolean findMerged)
Sets whether to report merged revisions or eligible for merge revisions- Parameters:
findMerged-trueif should report merged revisions,falseif should report eligible for merge
-
getSource
public SvnTarget getSource()
Returns merge source, can represent URL or working copy path.- Returns:
- merge source
-
setSource
public void setSource(SvnTarget source)
Returns merge source, can represent URL or working copy path.- Parameters:
source- merge source
-
isDiscoverChangedPaths
public boolean isDiscoverChangedPaths()
Returns whether to report of all changed paths for every revision being processed Iftruethen the changed pathsMapargument will be passed to a constructor ofSVNLogEntry.- Returns:
trueif all changed paths for every revision being processed should be reported, otherwisefalse
-
setDiscoverChangedPaths
public void setDiscoverChangedPaths(boolean discoverChangedPaths)
Sets whether to report of all changed paths for every revision being processed Iftruethen the changed pathsMapargument will be passed to a constructor ofSVNLogEntry.- Parameters:
discoverChangedPaths-trueif all changed paths for every revision being processed should be reported, otherwisefalse
-
getRevisionProperties
public java.lang.String[] getRevisionProperties()
Returns all revision ranges for those log should be reported.- Returns:
- collection of
SVNRevisionRangeobjects
-
setRevisionProperties
public void setRevisionProperties(java.lang.String[] revisionProperties)
Sets all revision ranges for those log should be reported.- Parameters:
revisionProperties- collection ofSVNRevisionRangeobjects
-
addRevisionRange
public void addRevisionRange(SvnRevisionRange range)
-
getRanges
public java.util.Collection<SvnRevisionRange> getRanges()
-
ensureArgumentsAreValid
protected void ensureArgumentsAreValid() throws SVNException- Overrides:
ensureArgumentsAreValidin classSvnOperation<SVNLogEntry>- Throws:
SVNException
-
isChangesWorkingCopy
public boolean isChangesWorkingCopy()
Gets whether the operation changes working copy- Overrides:
isChangesWorkingCopyin classSvnOperation<SVNLogEntry>- Returns:
trueif the operation changes the working copy, otherwisefalse
-
-