Search in sources :

Example 16 with SVNLogEntry

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);
}
Also used : SVNLogEntry(org.tmatesoft.svn.core.SVNLogEntry) GagoyleDate(com.kyj.fx.voeditor.visual.framework.model.GagoyleDate) Test(org.junit.Test)

Aggregations

SVNLogEntry (org.tmatesoft.svn.core.SVNLogEntry)16 Collection (java.util.Collection)7 List (java.util.List)7 SVNException (org.tmatesoft.svn.core.SVNException)7 Label (javafx.scene.control.Label)6 Logger (org.slf4j.Logger)6 LoggerFactory (org.slf4j.LoggerFactory)6 Date (java.util.Date)5 ValueUtil (com.kyj.fx.voeditor.visual.util.ValueUtil)4 Properties (java.util.Properties)4 Collectors (java.util.stream.Collectors)4 Node (javafx.scene.Node)4 ListView (javafx.scene.control.ListView)4 BorderPane (javafx.scene.layout.BorderPane)4 SVNRevision (org.tmatesoft.svn.core.wc.SVNRevision)4 GagoyleDate (com.kyj.fx.voeditor.visual.framework.model.GagoyleDate)3 DateUtil (com.kyj.fx.voeditor.visual.util.DateUtil)3 FxUtil (com.kyj.fx.voeditor.visual.util.FxUtil)3 ILogCommand (com.kyj.scm.manager.core.commons.ILogCommand)3 File (java.io.File)3