From 119771a7f97506db8dcfd8b3ccb92b22fdb9cc11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Wed, 17 Jan 2024 11:00:20 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B3=E3=83=A1=E3=83=B3=E3=83=88=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0,=20=E3=83=87=E3=83=90=E3=83=83=E3=82=B0=E7=94=A8?= =?UTF-8?q?=E3=81=AE=E5=AE=9F=E8=A3=85=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vcs/src/main/java/one/nem/lacerta/vcs/LacertaVcs.java | 2 ++ .../java/one/nem/lacerta/vcs/impl/LacertaVcsImpl.java | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/vcs/src/main/java/one/nem/lacerta/vcs/LacertaVcs.java b/vcs/src/main/java/one/nem/lacerta/vcs/LacertaVcs.java index 5ac6fc41..1f5d31ea 100644 --- a/vcs/src/main/java/one/nem/lacerta/vcs/LacertaVcs.java +++ b/vcs/src/main/java/one/nem/lacerta/vcs/LacertaVcs.java @@ -17,4 +17,6 @@ public interface LacertaVcs { // debug public void printLog(); + public void printRev(); + } diff --git a/vcs/src/main/java/one/nem/lacerta/vcs/impl/LacertaVcsImpl.java b/vcs/src/main/java/one/nem/lacerta/vcs/impl/LacertaVcsImpl.java index f2b845c2..dabcbfed 100644 --- a/vcs/src/main/java/one/nem/lacerta/vcs/impl/LacertaVcsImpl.java +++ b/vcs/src/main/java/one/nem/lacerta/vcs/impl/LacertaVcsImpl.java @@ -88,6 +88,7 @@ public class LacertaVcsImpl implements LacertaVcs { @Override public void generateRevisionAtCurrent(String message) { logger.debug(TAG, "generateRevisionAtCurrent"); + // TODO-rca: ブランチを考慮する ArrayList vcsLogEntities = getNonIncludedVcsLogEntities(); @@ -109,6 +110,7 @@ public class LacertaVcsImpl implements LacertaVcs { setIncludedVcsLogEntities(vcsLogEntities); logger.debug(TAG, "generateRevisionAtCurrent finished"); + logger.debug(TAG, "New revision inserted: " + vcsRevEntity.id); } @Override @@ -118,4 +120,12 @@ public class LacertaVcsImpl implements LacertaVcs { logger.debug(TAG, vcsLog.id); }); } + + @Override + public void printRev() { + logger.debug(TAG, "printRev"); + database.vcsRevDao().findAll().forEach(vcsRev -> { + logger.debug(TAG, vcsRev.id); + }); + } }