Mercurial > hg4j
comparison src/org/tmatesoft/hg/core/StatusCommand.java @ 94:af1f3b78b918
*StatusCollector renamed to Hg*StatusCollector
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
|---|---|
| date | Thu, 27 Jan 2011 21:18:47 +0100 |
| parents | d55d4eedfc57 |
| children | 4d7bb95d553b |
comparison
equal
deleted
inserted
replaced
| 93:d55d4eedfc57 | 94:af1f3b78b918 |
|---|---|
| 24 | 24 |
| 25 import org.tmatesoft.hg.core.LogCommand.FileRevision; | 25 import org.tmatesoft.hg.core.LogCommand.FileRevision; |
| 26 import org.tmatesoft.hg.core.Path.Matcher; | 26 import org.tmatesoft.hg.core.Path.Matcher; |
| 27 import org.tmatesoft.hg.repo.HgRepository; | 27 import org.tmatesoft.hg.repo.HgRepository; |
| 28 import org.tmatesoft.hg.repo.HgStatusInspector; | 28 import org.tmatesoft.hg.repo.HgStatusInspector; |
| 29 import org.tmatesoft.hg.repo.StatusCollector; | 29 import org.tmatesoft.hg.repo.HgStatusCollector; |
| 30 import org.tmatesoft.hg.repo.WorkingCopyStatusCollector; | 30 import org.tmatesoft.hg.repo.HgWorkingCopyStatusCollector; |
| 31 | 31 |
| 32 /** | 32 /** |
| 33 * | 33 * |
| 34 * @author Artem Tikhomirov | 34 * @author Artem Tikhomirov |
| 35 * @author TMate Software Ltd. | 35 * @author TMate Software Ltd. |
| 149 } | 149 } |
| 150 if (visitor != null) { | 150 if (visitor != null) { |
| 151 throw new ConcurrentModificationException(); | 151 throw new ConcurrentModificationException(); |
| 152 } | 152 } |
| 153 visitor = handler; | 153 visitor = handler; |
| 154 StatusCollector sc = new StatusCollector(repo); // TODO from CommandContext | 154 HgStatusCollector sc = new HgStatusCollector(repo); // TODO from CommandContext |
| 155 // PathPool pathHelper = new PathPool(repo.getPathHelper()); // TODO from CommandContext | 155 // PathPool pathHelper = new PathPool(repo.getPathHelper()); // TODO from CommandContext |
| 156 try { | 156 try { |
| 157 // XXX if I need a rough estimation (for ProgressMonitor) of number of work units, | 157 // XXX if I need a rough estimation (for ProgressMonitor) of number of work units, |
| 158 // I may use number of files in either rev1 or rev2 manifest edition | 158 // I may use number of files in either rev1 or rev2 manifest edition |
| 159 mediator.start(); | 159 mediator.start(); |
| 160 if (endRevision == WORKING_COPY) { | 160 if (endRevision == WORKING_COPY) { |
| 161 WorkingCopyStatusCollector wcsc = new WorkingCopyStatusCollector(repo); | 161 HgWorkingCopyStatusCollector wcsc = new HgWorkingCopyStatusCollector(repo); |
| 162 wcsc.setBaseRevisionCollector(sc); | 162 wcsc.setBaseRevisionCollector(sc); |
| 163 wcsc.walk(startRevision, mediator); | 163 wcsc.walk(startRevision, mediator); |
| 164 } else { | 164 } else { |
| 165 if (startRevision == TIP) { | 165 if (startRevision == TIP) { |
| 166 sc.change(endRevision, mediator); | 166 sc.change(endRevision, mediator); |
