mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
vcs: restore ability to Accept Yours/Theirs for submodule: IDEA-193788
MergeSession.canMerge() is intended to be used only to enable/disable the Merge button. Although this is not entirely clear from the method name, it is stated in the method's javadoc, and it is safe to behave this way, since it actually makes sense just for Git submodules.
Was broken in d3c7fa5
This commit is contained in:
@@ -249,15 +249,13 @@ open class MultipleFileMergeDialog(
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
if (mergeSession is MergeSessionEx) {
|
if (mergeSession is MergeSessionEx) {
|
||||||
val supportedFiles = files.filter { file -> mergeSession.canMerge(file) }
|
mergeSession.acceptFilesRevisions(files, resolution)
|
||||||
|
|
||||||
mergeSession.acceptFilesRevisions(supportedFiles, resolution)
|
for (file in files) {
|
||||||
|
|
||||||
for (file in supportedFiles) {
|
|
||||||
checkMarkModifiedProject(file)
|
checkMarkModifiedProject(file)
|
||||||
}
|
}
|
||||||
|
|
||||||
markFilesProcessed(supportedFiles, resolution)
|
markFilesProcessed(files, resolution)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
for (file in files) {
|
for (file in files) {
|
||||||
|
|||||||
Reference in New Issue
Block a user