From f76d299c94e2e07ed39196e0cb5d41e5a5861dcc Mon Sep 17 00:00:00 2001 From: Nadya Zabrodina Date: Fri, 18 Dec 2015 16:30:22 +0300 Subject: [PATCH] [lvcs]: provide lvcs API to be able revert dir to label-state --- platform/lvcs-api/src/com/intellij/history/LocalHistory.java | 4 ++++ .../com/intellij/history/integration/LocalHistoryImpl.java | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/platform/lvcs-api/src/com/intellij/history/LocalHistory.java b/platform/lvcs-api/src/com/intellij/history/LocalHistory.java index 6e95af88c5c6..c61e974b4e41 100644 --- a/platform/lvcs-api/src/com/intellij/history/LocalHistory.java +++ b/platform/lvcs-api/src/com/intellij/history/LocalHistory.java @@ -43,4 +43,8 @@ public abstract class LocalHistory { public abstract byte[] getByteContent(VirtualFile f, FileRevisionTimestampComparator c); public abstract boolean isUnderControl(VirtualFile f); + + public void revertToLabel(@NotNull Project project, @NotNull VirtualFile f, @NotNull Label label) { + } + } diff --git a/platform/lvcs-impl/src/com/intellij/history/integration/LocalHistoryImpl.java b/platform/lvcs-impl/src/com/intellij/history/integration/LocalHistoryImpl.java index ad686e03517a..238d29853f83 100644 --- a/platform/lvcs-impl/src/com/intellij/history/integration/LocalHistoryImpl.java +++ b/platform/lvcs-impl/src/com/intellij/history/integration/LocalHistoryImpl.java @@ -234,4 +234,8 @@ public class LocalHistoryImpl extends LocalHistory implements ApplicationCompone public IdeaGateway getGateway() { return myGateway; } + + @Override + public void revertToLabel(@NotNull Project project, @NotNull VirtualFile f, @NotNull Label label) { + } }