IDEA-68120 CCE in Mercurial. Pass HistorySession copy on refresh.

[reviewed by Kirill Likhodedov]
This commit is contained in:
irengrig
2011-05-03 17:11:39 +04:00
committed by Kirill Likhodedov
parent 965dcc2b3b
commit fec8b2b9a2
@@ -173,13 +173,13 @@ public class AbstractVcsHelperImpl extends AbstractVcsHelper {
}
private FileHistoryPanelImpl resetHistoryPanel() {
final VcsHistorySession copy = mySession.copyWithCachedRevision();
if (myFileHistoryPanel == null) {
ContentManager contentManager = ProjectLevelVcsManagerEx.getInstanceEx(myVcs.getProject()).getContentManager();
final VcsHistorySession copy = mySession.copyWithCachedRevision();
myFileHistoryPanel = new FileHistoryPanelImpl(myVcs, myPath, copy, myVcsHistoryProvider,
contentManager, myRefresher);
} else {
myFileHistoryPanel.getHistoryPanelRefresh().consume(mySession);
myFileHistoryPanel.getHistoryPanelRefresh().consume(copy);
}
return myFileHistoryPanel;
}