Mercurial > hg4j
comparison src/org/tmatesoft/hg/core/HgLogCommand.java @ 154:ba2bf656f00f
Changeset => RawChangeset
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 24 Feb 2011 22:16:19 +0100 |
parents | 1a7a9a20e1f9 |
children | d5268ca7715b |
comparison
equal
deleted
inserted
replaced
153:ab7ea2ac21cb | 154:ba2bf656f00f |
---|---|
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.HgChangelog.Changeset; | 29 import org.tmatesoft.hg.repo.HgChangelog.RawChangeset; |
30 import org.tmatesoft.hg.repo.HgChangelog; | 30 import org.tmatesoft.hg.repo.HgChangelog; |
31 import org.tmatesoft.hg.repo.HgDataFile; | 31 import org.tmatesoft.hg.repo.HgDataFile; |
32 import org.tmatesoft.hg.repo.HgRepository; | 32 import org.tmatesoft.hg.repo.HgRepository; |
33 import org.tmatesoft.hg.repo.HgStatusCollector; | 33 import org.tmatesoft.hg.repo.HgStatusCollector; |
34 import org.tmatesoft.hg.util.Path; | 34 import org.tmatesoft.hg.util.Path; |
160 public HgLogCommand file(String file, boolean followCopyRename) { | 160 public HgLogCommand file(String file, boolean followCopyRename) { |
161 return file(Path.create(repo.getToRepoPathHelper().rewrite(file)), followCopyRename); | 161 return file(Path.create(repo.getToRepoPathHelper().rewrite(file)), followCopyRename); |
162 } | 162 } |
163 | 163 |
164 /** | 164 /** |
165 * Similar to {@link #execute(org.tmatesoft.hg.repo.Changeset.Inspector)}, collects and return result as a list. | 165 * Similar to {@link #execute(org.tmatesoft.hg.repo.RawChangeset.Inspector)}, collects and return result as a list. |
166 */ | 166 */ |
167 public List<HgChangeset> execute() { | 167 public List<HgChangeset> execute() { |
168 CollectHandler collector = new CollectHandler(); | 168 CollectHandler collector = new CollectHandler(); |
169 execute(collector); | 169 execute(collector); |
170 return collector.getChanges(); | 170 return collector.getChanges(); |
222 } | 222 } |
223 } | 223 } |
224 | 224 |
225 // | 225 // |
226 | 226 |
227 public void next(int revisionNumber, Nodeid nodeid, Changeset cset) { | 227 public void next(int revisionNumber, Nodeid nodeid, RawChangeset cset) { |
228 if (limit > 0 && count >= limit) { | 228 if (limit > 0 && count >= limit) { |
229 return; | 229 return; |
230 } | 230 } |
231 if (branches != null && !branches.contains(cset.branch())) { | 231 if (branches != null && !branches.contains(cset.branch())) { |
232 return; | 232 return; |