return true;
}
+ public boolean needsLastUnchangedContent() {
+ return false;
+ }
+
public static boolean fileInVcsByFileStatus(final Project project, final FilePath path) {
final VirtualFile virtualFile = path.getVirtualFile();
if (virtualFile != null) {
});
for (VcsDirtyScope scope : scopes) {
- updateLastUnchangedContents(scope);
+ if (scope.getVcs().needsLastUnchangedContent()) {
+ updateLastUnchangedContents(scope);
+ }
}
myChangesViewManager.scheduleRefresh();
for (VcsDirectoryMapping mapping : vcsManager.getDirectoryMappings()) {
final AbstractVcs vcs = vcsManager.findVcsByName(mapping.getVcs());
final VirtualFile file = LocalFileSystem.getInstance().findFileByPath(mapping.getDirectory());
- if (vcs != null && file != null) {
+ if (vcs != null && file != null && vcs.needsLastUnchangedContent()) {
if (indicator != null) {
indicator.setText(mapping.getDirectory());
}