use of org.tmatesoft.svn.core.SVNLogEntry in project Gargoyle by callakrsos.
the class SVNHistoryWalkTest method historyWalkAnalysisTest.
/**
* 현재 일자에 최신 커밋내역을 조회.
* @작성자 : KYJ
* @작성일 : 2016. 7. 14.
* @throws SVNException
*/
@Test
public void historyWalkAnalysisTest() throws SVNException {
List<GagoyleDate> periodDaysByWeek = DateUtil.getPeriodDaysByWeek();
GagoyleDate start = periodDaysByWeek.get(0);
GagoyleDate end = periodDaysByWeek.get(periodDaysByWeek.size() - 1);
long startRevision = localServerManager2.getRevision(start.toDate());
long endRevision = localServerManager2.getRevision(end.toDate());
System.out.println("start " + start.toDateString() + " end : " + end.toDateString());
System.out.println("startRevision " + startRevision + " endRevision : " + endRevision);
Collection<SVNLogEntry> allLogs = localServerManager2.getAllLogs(startRevision, endRevision);
allLogs.stream().map(localServerManager2.fromPrettySVNLogConverter()).forEach(System.out::println);
}
Aggregations