Package org.tmatesoft.svn.core.wc2
Class SvnResolve
- java.lang.Object
-
- org.tmatesoft.svn.core.wc2.SvnOperation<java.lang.Void>
-
- org.tmatesoft.svn.core.wc2.SvnResolve
-
- All Implemented Interfaces:
ISvnOperationOptionsProvider
public class SvnResolve extends SvnOperation<java.lang.Void>
Represents resolve operation. Performs automatic conflict resolution on a working copytarget. IfdepthisSVNDepth.EMPTY, acts only ontarget; ifSVNDepth.FILES, resolvestargetand its conflicted file children (if any); ifSVNDepth.IMMEDIATES, resolvestargetand all its immediate conflicted children (both files and directories, if any); ifSVNDepth.INFINITY, resolvestargetand every conflicted file or directory anywhere beneath it. Iftargetis not in a state of conflict to begin with, does nothing. Iftarget's conflict state is removed and caller'sISVNEntryHandleris not null, then anSVNEventAction.RESOLVEDevent is dispatched to the handler.- Version:
- 1.7
- Author:
- TMate Software Ltd.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSvnResolve(SvnOperationFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SVNConflictChoicegetConflictChoice()Gets kind of choice object for making decision while resolving.booleanisChangesWorkingCopy()Gets whether the operation changes working copybooleanisResolveContents()Returns whether to resolve target's content conflictbooleanisResolveProperties()Returns whether to resolve target's properties conflictbooleanisResolveTree()Returns whether to resolve any target's tree conflictvoidsetConflictChoice(SVNConflictChoice conflictChoice)Sets kind of choice object for making decision while resolving.voidsetResolveContents(boolean resolveContents)Sets whether to resolve target's content conflictvoidsetResolveProperties(boolean resolveProperties)Sets whether to resolve target's properties conflictvoidsetResolveTree(boolean resolveTree)Sets whether to resolve any target's tree conflict-
Methods inherited from class org.tmatesoft.svn.core.wc2.SvnOperation
addTarget, cancel, ensureArgumentsAreValid, ensureEnoughTargets, ensureHomohenousTargets, getApplicableChangelists, getAuthenticationManager, getCanceller, getDepth, getEventHandler, getFirstTarget, getMaximumTargetsCount, getMinimumTargetsCount, getOperationalWorkingCopy, getOperationFactory, getOptions, getRepositoryPool, getRevision, getSqliteJournalMode, getTargets, hasFileTargets, hasLocalTargets, hasRemoteTargets, initDefaults, isCancelled, isSleepForTimestamp, isUseParentWcFormat, needsHomohenousTargets, run, setApplicalbeChangelists, setDepth, setRevision, setSingleTarget, setSleepForTimestamp, setSqliteJournalMode
-
-
-
-
Constructor Detail
-
SvnResolve
protected SvnResolve(SvnOperationFactory factory)
-
-
Method Detail
-
getConflictChoice
public SVNConflictChoice getConflictChoice()
Gets kind of choice object for making decision while resolving.- Returns:
- choice object for the operation
- See Also:
setConflictChoice(SVNConflictChoice)
-
setConflictChoice
public void setConflictChoice(SVNConflictChoice conflictChoice)
Sets kind of choice object for making decision while resolving. IfconflictChoiceisSVNConflictChoice.BASE, resolves the conflict with the old file contents; ifSVNConflictChoice.MINE_FULL, uses the original working contents; ifSVNConflictChoice.THEIRS_FULL, the new contents; and ifSVNConflictChoice.MERGED, doesn't change the contents at all, just removes the conflict status, which is the pre-1.2 (pre-SVN 1.5) behavior.SVNConflictChoice.THEIRS_CONFLICTandSVNConflictChoice.MINE_CONFLICTare not legal for binary files or properties.- Parameters:
conflictChoice- choice object for the operation
-
isResolveContents
public boolean isResolveContents()
Returns whether to resolve target's content conflict- Returns:
trueif content conflict of the target should be resolved, otherwisefalse
-
setResolveContents
public void setResolveContents(boolean resolveContents)
Sets whether to resolve target's content conflict- Parameters:
resolveContents-trueif content conflict of the target should be resolved, otherwisefalse
-
isResolveProperties
public boolean isResolveProperties()
Returns whether to resolve target's properties conflict- Returns:
trueif properties conflict of the target should be resolved, otherwisefalse
-
setResolveProperties
public void setResolveProperties(boolean resolveProperties)
Sets whether to resolve target's properties conflict- Parameters:
resolveProperties-trueif properties conflict of the target should be resolved, otherwisefalse
-
isResolveTree
public boolean isResolveTree()
Returns whether to resolve any target's tree conflict- Returns:
trueif any tree conflict of the target should be resolved, otherwisefalse
-
setResolveTree
public void setResolveTree(boolean resolveTree)
Sets whether to resolve any target's tree conflict- Parameters:
resolveTree-trueif any tree conflict of the target should be resolved, otherwisefalse
-
isChangesWorkingCopy
public boolean isChangesWorkingCopy()
Gets whether the operation changes working copy- Overrides:
isChangesWorkingCopyin classSvnOperation<java.lang.Void>- Returns:
trueif the operation changes the working copy, otherwisefalse
-
-