mercurial loader: Fix snapshot creation
A full visit should always end up with a snapshot.
Whether some optimization exists to filter out already seen revisions should not alter the final snapshot. The heads of the mercurial loader should be the branches of the snapshot.
This is not the current behavior as demonstrated in !102 (closed).
Migrated from T3571 (view on Phabricator)