mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
SVN: one-click merge: check for switched copies
(cherry picked from commit aaf8e546f1deb62c39f7fddaaa6a412f150e236a)
This commit is contained in:
@@ -37,6 +37,7 @@ import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.util.Consumer;
|
||||
import com.intellij.util.PairConsumer;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.idea.svn.NestedCopyType;
|
||||
import org.jetbrains.idea.svn.SvnBranchConfigurationManager;
|
||||
import org.jetbrains.idea.svn.SvnVcs;
|
||||
import org.jetbrains.idea.svn.actions.ChangeListsMergerFactory;
|
||||
@@ -154,7 +155,8 @@ public class QuickMerge {
|
||||
boolean switchedFound = false;
|
||||
for (WCInfo wcInfo : infoList) {
|
||||
try {
|
||||
if (FileUtil.isAncestor(new File(myWcInfo.getPath()), new File(wcInfo.getPath()), true)) {
|
||||
if (FileUtil.isAncestor(new File(myWcInfo.getPath()), new File(wcInfo.getPath()), true)
|
||||
&& NestedCopyType.switched.equals(wcInfo.getType())) {
|
||||
switchedFound = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user