rework handling of latest revisions for list of repositories

fixes #771