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 TypeMethodDescriptionboolean
If there are nothing to merge.protected void
The callback method if there no changes to compare.protected void
Runs the comparison on the built compare/merge process batch.void
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 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 benull
revisionToCompareWith
- the revision to compare with, may be commit hash, branch name or index revisionGitCompareUtils.INDEX
, cannot benull
matchingStrategy
- the matching strategy, cannot benull
mergeObjectsContent
- 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 benull
pathsToFilter
- the map from a compared project to paths in the project limiting search for changes on the comparison, may benull
mergeSettingsFileName
- the merge settings file name, may benull
filePathConverter
- the qualified name file path converter, cannot benull
v8ProjectManager
- the V8 project manager, cannot benull
comparisonManager
- the comparison process manager, cannot benull
testingWorkspace
- testing workspace, cannot benull
-
-
Method Details
-
getHandle
-
isNothingToMerge
public boolean isNothingToMerge()If there are nothing to merge.- Returns:
true
if there is nothing to merge,false
otherwise
-
startMergeAndWait
public void startMergeAndWait()Starts merge and waits until it finish. -
onNothingToCompare
protected void onNothingToCompare()Description copied from class:AbstractCompareWithPerformer
The callback method if there no changes to compare.- Specified by:
onNothingToCompare
in classAbstractCompareWithPerformer
-
runComparison
Description copied from class:AbstractCompareWithPerformer
Runs the comparison on the built compare/merge process batch.- Specified by:
runComparison
in classAbstractCompareWithPerformer
- Parameters:
batch
- the compare/merge process batch, cannot benull
-