comparison src/org/tmatesoft/hg/core/LogCommand.java @ 74:6f1b88693d48

Complete refactoring to org.tmatesoft
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Mon, 24 Jan 2011 03:14:45 +0100
parents 993f6f8e1314
children c677e1593919
comparison
equal deleted inserted replaced
73:0d279bcc4442 74:6f1b88693d48
14 * the terms of a license other than GNU General Public License 14 * the terms of a license other than GNU General Public License
15 * contact TMate Software at support@svnkit.com 15 * contact TMate Software at support@svnkit.com
16 */ 16 */
17 package org.tmatesoft.hg.core; 17 package org.tmatesoft.hg.core;
18 18
19 import static com.tmate.hgkit.ll.HgRepository.TIP; 19 import static org.tmatesoft.hg.repo.HgRepository.TIP;
20 20
21 import java.util.Calendar; 21 import java.util.Calendar;
22 import java.util.Collections; 22 import java.util.Collections;
23 import java.util.ConcurrentModificationException; 23 import java.util.ConcurrentModificationException;
24 import java.util.LinkedList; 24 import java.util.LinkedList;
25 import java.util.List; 25 import java.util.List;
26 import java.util.Set; 26 import java.util.Set;
27 import java.util.TreeSet; 27 import java.util.TreeSet;
28 28
29 import org.tmatesoft.hg.repo.Changeset;
30 import org.tmatesoft.hg.repo.HgRepository;
31 import org.tmatesoft.hg.repo.StatusCollector;
29 import org.tmatesoft.hg.util.PathPool; 32 import org.tmatesoft.hg.util.PathPool;
30 33
31 import com.tmate.hgkit.ll.Changeset;
32 import com.tmate.hgkit.ll.HgRepository;
33 import com.tmate.hgkit.ll.Nodeid;
34 import com.tmate.hgkit.ll.StatusCollector;
35 34
36 /** 35 /**
37 * <pre> 36 * <pre>
38 * new LogCommand().limit(20).branch("maintenance-2.1").user("me").execute(new MyHandler()); 37 * new LogCommand().limit(20).branch("maintenance-2.1").user("me").execute(new MyHandler());
39 * </pre> 38 * </pre>
135 // implicit --follow in this case 134 // implicit --follow in this case
136 throw HgRepository.notImplemented(); 135 throw HgRepository.notImplemented();
137 } 136 }
138 137
139 /** 138 /**
140 * Similar to {@link #execute(com.tmate.hgkit.ll.Changeset.Inspector)}, collects and return result as a list. 139 * Similar to {@link #execute(org.tmatesoft.hg.repo.Changeset.Inspector)}, collects and return result as a list.
141 */ 140 */
142 public List<Cset> execute() { 141 public List<Cset> execute() {
143 CollectHandler collector = new CollectHandler(); 142 CollectHandler collector = new CollectHandler();
144 execute(collector); 143 execute(collector);
145 return collector.getChanges(); 144 return collector.getChanges();