mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-50300 CVS: after update with -A the previously switched file is shown as switched until Refresh
thanks to Bas for help
This commit is contained in:
@@ -17,6 +17,7 @@ package com.intellij.openapi.vcs.changes;
|
||||
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.Pair;
|
||||
import com.intellij.openapi.vcs.FilePathImpl;
|
||||
import com.intellij.openapi.vfs.VfsUtil;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.util.PairProcessor;
|
||||
@@ -48,8 +49,7 @@ public class SwitchedFileHolder extends RecursiveFileHolder<Pair<Boolean, String
|
||||
protected boolean isFileDirty(final VcsDirtyScope scope, final VirtualFile file) {
|
||||
if (scope == null) return true;
|
||||
if (fileDropped(file)) return true;
|
||||
final VirtualFile parent = file.getParent();
|
||||
return (parent != null) && (scope.isRecursivelyDirty(parent));
|
||||
return scope.belongsTo(new FilePathImpl(file));
|
||||
}
|
||||
|
||||
public Map<VirtualFile, String> getFilesMapCopy() {
|
||||
|
||||
Reference in New Issue
Block a user