コメント追加, デバッグ用の実装を追加

This commit is contained in:
ろむねこ 2024-01-17 11:00:20 +09:00
parent b6a30d5cbf
commit 119771a7f9
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168
2 changed files with 12 additions and 0 deletions

View File

@ -17,4 +17,6 @@ public interface LacertaVcs {
// debug // debug
public void printLog(); public void printLog();
public void printRev();
} }

View File

@ -88,6 +88,7 @@ public class LacertaVcsImpl implements LacertaVcs {
@Override @Override
public void generateRevisionAtCurrent(String message) { public void generateRevisionAtCurrent(String message) {
logger.debug(TAG, "generateRevisionAtCurrent"); logger.debug(TAG, "generateRevisionAtCurrent");
// TODO-rca: ブランチを考慮する
ArrayList<VcsLogEntity> vcsLogEntities = getNonIncludedVcsLogEntities(); ArrayList<VcsLogEntity> vcsLogEntities = getNonIncludedVcsLogEntities();
@ -109,6 +110,7 @@ public class LacertaVcsImpl implements LacertaVcs {
setIncludedVcsLogEntities(vcsLogEntities); setIncludedVcsLogEntities(vcsLogEntities);
logger.debug(TAG, "generateRevisionAtCurrent finished"); logger.debug(TAG, "generateRevisionAtCurrent finished");
logger.debug(TAG, "New revision inserted: " + vcsRevEntity.id);
} }
@Override @Override
@ -118,4 +120,12 @@ public class LacertaVcsImpl implements LacertaVcs {
logger.debug(TAG, vcsLog.id); logger.debug(TAG, vcsLog.id);
}); });
} }
@Override
public void printRev() {
logger.debug(TAG, "printRev");
database.vcsRevDao().findAll().forEach(vcsRev -> {
logger.debug(TAG, vcsRev.id);
});
}
} }