} else {
// report complete file history (XXX may narrow range with [startRev, endRev], but need to go from file rev to link rev)
int fileStartRev = curRename.fileFrom();
int fileEndRev = curRename.file().getLastRevision(); //curRename.fileTo();
if (iterateDirection == HgIterateDirection.OldToNew) {
fileNode.history(fileStartRev, fileEndRev, filterInsp);
csetTransform.checkFailure();
} else {
assert iterateDirection == HgIterateDirection.NewToOld;
BatchRangeHelper brh = new BatchRangeHelper(fileStartRev, fileEndRev, BATCH_SIZE, true);
BatchChangesetInspector batchInspector = new BatchChangesetInspector(Math.min(fileEndRev-fileStartRev+1, BATCH_SIZE));