handle revision pruning if lastSequence is null