Package com._1c.g5.v8.dt.testing.compare
Class CompareWithTestPerformer
- java.lang.Object
-
- com._1c.g5.v8.dt.compare.git.AbstractCompareWithPerformer
-
- com._1c.g5.v8.dt.testing.compare.CompareWithTestPerformer
-
public class CompareWithTestPerformer extends AbstractCompareWithPerformer
Performs compare\merge with descriptor generated byAbstractCompareWithPerformer
-
-
Constructor Summary
Constructors Constructor Description CompareWithTestPerformer(org.eclipse.jgit.lib.Repository repository, String revisionToCompareWith, MatchingStrategy matchingStrategy, boolean mergeObjectsContent, boolean parseBslModuleStructure, Collection<org.eclipse.core.resources.IProject> projects, Map<org.eclipse.core.resources.IProject,List<Path>> pathsToFilter, String mergeSettingsFileName, IQualifiedNameFilePathConverter filePathConverter, IV8ProjectManager v8ProjectManager, IComparisonManager comparisonManager, TestingWorkspace testingWorkspace)Creates a new instance with the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComparisonProcessHandlegetHandle()booleanisNothingToMerge()If there are nothing to merge.protected voidonNothingToCompare()The callback method if there no changes to compare.protected voidrunComparison(CompareMergeProcessBatch batch)Runs the comparison on the built compare/merge process batch.voidstartMergeAndWait()Starts merge and waits until it finish.-
Methods inherited from class com._1c.g5.v8.dt.compare.git.AbstractCompareWithPerformer
getBaseCommit, getCommitToCompareWith, getCompareMergeProcessBatch, getHeadCommit, getProjects, getRepository, getRevisionToCompareWith, perform
-
-
-
-
Constructor Detail
-
CompareWithTestPerformer
public CompareWithTestPerformer(org.eclipse.jgit.lib.Repository repository, String revisionToCompareWith, MatchingStrategy matchingStrategy, boolean mergeObjectsContent, boolean parseBslModuleStructure, Collection<org.eclipse.core.resources.IProject> projects, Map<org.eclipse.core.resources.IProject,List<Path>> pathsToFilter, String mergeSettingsFileName, IQualifiedNameFilePathConverter filePathConverter, IV8ProjectManager v8ProjectManager, IComparisonManager comparisonManager, TestingWorkspace testingWorkspace)Creates a new instance with the given parameters.- Parameters:
repository- the Git repository to run comparison on, cannot benullrevisionToCompareWith- the revision to compare with, may be commit hash, branch name or index revisionGitCompareUtils.INDEX, cannot benullmatchingStrategy- the matching strategy, cannot benullmergeObjectsContent- tells whether only objects content is to be mergedparseBslModuleStructure- tells whether to compare and merge a Bsl module with parsing module structureprojects- the projects to run Git 'Compare With' command on, cannot benullpathsToFilter- the map from a compared project to paths in the project limiting search for changes on the comparison, may benullmergeSettingsFileName- the merge settings file name, may benullfilePathConverter- the qualified name file path converter, cannot benullv8ProjectManager- the V8 project manager, cannot benullcomparisonManager- the comparison process manager, cannot benulltestingWorkspace- testing workspace, cannot benull
-
-
Method Detail
-
getHandle
public ComparisonProcessHandle getHandle()
-
isNothingToMerge
public boolean isNothingToMerge()
If there are nothing to merge.- Returns:
trueif there is nothing to merge,falseotherwise
-
startMergeAndWait
public void startMergeAndWait()
Starts merge and waits until it finish.
-
onNothingToCompare
protected void onNothingToCompare()
Description copied from class:AbstractCompareWithPerformerThe callback method if there no changes to compare.- Specified by:
onNothingToComparein classAbstractCompareWithPerformer
-
runComparison
protected void runComparison(CompareMergeProcessBatch batch)
Description copied from class:AbstractCompareWithPerformerRuns the comparison on the built compare/merge process batch.- Specified by:
runComparisonin classAbstractCompareWithPerformer- Parameters:
batch- the compare/merge process batch, cannot benull
-
-