[vcs-log] refresh action does soft refresh

This commit is contained in:
Julia Beliaeva
2016-10-04 19:03:13 +03:00
parent 6ce21b6854
commit 38160c8583
2 changed files with 9 additions and 1 deletions
@@ -256,6 +256,14 @@ public class VcsLogData implements Disposable, VcsLogDataProvider {
initialize();
}
/**
* Refreshes all the roots.
* In contrast to refreshCompletely, does not re-read all log but rather the most recent commits.
*/
public void refreshSoftly() {
myRefresher.refresh(myLogProviders.keySet());
}
/**
* Makes the log perform refresh for the given root.
* This refresh can be optimized, i. e. it can query VCS just for the part of the log.
@@ -54,7 +54,7 @@ public class RefreshLogAction extends RefreshAction {
}
}
logManager.getDataManager().refreshCompletely();
logManager.getDataManager().refreshSoftly();
}
@Override