algos.snapshot: Add visits_and_snapshots_get_from_revision
Its code is moved from snapshot_id_get_from_revision so it's a rather small change; and the revision metadata migration script (bin/migrate-extrinsic-metadata.py) in !545 (closed) will need it.
Migrated from D3829 (view on Phabricator)