HgStatusCollector sc = new HgStatusCollector(repo); // TODO from CommandContext
// PathPool pathHelper = new PathPool(repo.getPathHelper()); // TODO from CommandContext
try {
// XXX if I need a rough estimation (for ProgressMonitor) of number of work units,
// I may use number of files in either rev1 or rev2 manifest edition
mediator.start(statusHandler, getCancelSupport(statusHandler, true), new ChangelogHelper(repo, startRevision));
if (endRevision == WORKING_COPY) {
HgWorkingCopyStatusCollector wcsc = scope != null ? HgWorkingCopyStatusCollector.create(repo, scope) : new HgWorkingCopyStatusCollector(repo);
wcsc.setBaseRevisionCollector(sc);
wcsc.walk(startRevision, mediator);
} else {