IDEA-153826 refresh synchronously after checkout, reset, create tag, and hg update

This commit is contained in:
Kirill Likhodedov
2016-03-31 16:59:16 +03:00
parent c057709fb5
commit 32533a42ec
4 changed files with 4 additions and 4 deletions
@@ -137,7 +137,7 @@ public abstract class DvcsPlatformFacadeImpl implements DvcsPlatformFacade {
@Override
public void hardRefresh(@NotNull VirtualFile root) {
VfsUtil.markDirtyAndRefresh(true, true, false, root);
VfsUtil.markDirtyAndRefresh(false, true, false, root);
}
}
@@ -85,7 +85,7 @@ public final class GitBranchWorker {
public void createNewTag(@NotNull final String name, @NotNull final String reference, @NotNull final List<GitRepository> repositories) {
for (GitRepository repository : repositories) {
myGit.createNewTag(repository, name, null, reference);
repository.getRepositoryFiles().refresh(true);
repository.getRepositoryFiles().refresh(false);
}
}
@@ -95,7 +95,7 @@ public class GitResetOperation {
}
results.put(repository, result);
repository.update();
VfsUtil.markDirtyAndRefresh(true, true, false, root);
VfsUtil.markDirtyAndRefresh(false, true, false, root);
VcsDirtyScopeManager.getInstance(myProject).dirDirtyRecursively(root);
}
}
@@ -95,7 +95,7 @@ public class HgUpdateCommand {
DvcsUtil.workingTreeChangeFinished(project, token);
}
VfsUtil.markDirtyAndRefresh(true, true, false, repo);
VfsUtil.markDirtyAndRefresh(false, true, false, repo);
return result;
}