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); + }); + } }