Fix revlog.parseindex
parseindex could fail if read returns too little data in the right
moment (e.g. when there's still leftover data from the previous
iteration and read returns less than "s" bytes).
3210 files updated, 0 files merged, 1 files removed, 0 files unresolvedsub/b not presentsub not present