Fix StopIteration exception during repo {sync,status}

If we run out of entries next() will throw StopIteration.

Signed-off-by: Shawn O. Pearce <sop@google.com>
1 file changed