Package org.tmatesoft.svn.cli.svn
Class SVNCommandLineConflictHandler
- java.lang.Object
-
- org.tmatesoft.svn.cli.svn.SVNCommandLineConflictHandler
-
- All Implemented Interfaces:
ISVNConflictHandler
public class SVNCommandLineConflictHandler extends java.lang.Object implements ISVNConflictHandler
- Since:
- 1.2.0
- Version:
- 1.3
-
-
Field Summary
Fields Modifier and Type Field Description private SVNConflictAcceptPolicymyAcceptprivate booleanmyIsExternalFailedprivate SVNCommandEnvironmentmySVNEnvironment
-
Constructor Summary
Constructors Constructor Description SVNCommandLineConflictHandler(SVNConflictAcceptPolicy accept, SVNCommandEnvironment environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private SVNConflictStatsgetConflictStats()SVNConflictResulthandleConflict(SVNConflictDescription conflictDescription)Handles the conflict given the conflict descriptionconflictDescriptionand returnsSVNConflictResulthandleConflictNoStats(SVNConflictDescription conflictDescription)private voidshowConflictedChunks(SVNMergeFileSet files)
-
-
-
Field Detail
-
myAccept
private SVNConflictAcceptPolicy myAccept
-
mySVNEnvironment
private SVNCommandEnvironment mySVNEnvironment
-
myIsExternalFailed
private boolean myIsExternalFailed
-
-
Constructor Detail
-
SVNCommandLineConflictHandler
public SVNCommandLineConflictHandler(SVNConflictAcceptPolicy accept, SVNCommandEnvironment environment)
-
-
Method Detail
-
handleConflict
public SVNConflictResult handleConflict(SVNConflictDescription conflictDescription) throws SVNException
Description copied from interface:ISVNConflictHandlerHandles the conflict given the conflict descriptionconflictDescriptionand returnsSVNConflictResult.getConflictChoice()values ofSVNConflictChoice.MINE_CONFLICTandSVNConflictChoice.THEIRS_CONFLICTare not legal for conflicts in binary files or properties.- Specified by:
handleConflictin interfaceISVNConflictHandler- Parameters:
conflictDescription- describes the exact nature of the conflict, and provides information to help resolve it- Returns:
- result for the conflict described by
conflictDescription - Throws:
SVNException
-
handleConflictNoStats
public SVNConflictResult handleConflictNoStats(SVNConflictDescription conflictDescription) throws SVNException
- Throws:
SVNException
-
showConflictedChunks
private void showConflictedChunks(SVNMergeFileSet files) throws SVNException
- Throws:
SVNException
-
getConflictStats
private SVNConflictStats getConflictStats()
-
-