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
Performs compare\merge with descriptor generated by
AbstractCompareWithPerformer-
Constructor Summary
ConstructorsConstructorDescriptionCompareWithTestPerformer(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
Modifier and TypeMethodDescriptionbooleanIf there are nothing to merge.protected voidThe callback method if there no changes to compare.protected voidRuns the comparison on the built compare/merge process batch.voidStarts 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 Details
-
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 Details
-
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
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
-