swhworker@worker17:~$ time SWH_CONFIG_FILENAME=/etc/softwareheritage/loader_oneshot.yml swh loader run mercurial_from_disk https://foss.heptapod.net/mercurial/tortoisehg/thg
INFO:swh.loader.mercurial.LoaderFromDisk:Load origin 'https://foss.heptapod.net/mercurial/tortoisehg/thg' with type 'hg'
requesting all changes
adding changesets
adding manifests
adding file changes
added 19929 changesets with 32270 changes to 1595 files
new changesets bac32db38e52:0a83dac8c779
{'status': 'eventful'}
real 12m11.504s
user 8m43.197s
sys 0m33.806s
```
snapshot:
```
15:55:47 softwareheritage@belvedere:5432=> select * from origin o inner join origin_visit_status ovs on o.id=ovs.origin where o.url = 'https://foss.heptapod.net/mercurial/tortoisehg/thg' and ovs.type='hg' order by date desc;
15:55:29 swh@db1:5432=> select * from origin o inner join origin_visit_status ovs on o.id=ovs.origin where o.url = 'https://foss.heptapod.net/mercurial/tortoisehg/thg' and ovs.type='hg' order by date desc limit 2;
swhworker@worker17:~$ time SWH_CONFIG_FILENAME=/etc/softwareheritage/loader_oneshot.yml swh loader run mercurial_from_disk https://foss.heptapod.net/mercurial/tortoisehg/thg
INFO:swh.loader.mercurial.LoaderFromDisk:Load origin 'https://foss.heptapod.net/mercurial/tortoisehg/thg' with type 'hg'
requesting all changes
adding changesets
adding manifests
adding file changes
added 19929 changesets with 32270 changes to 1595 files
new changesets bac32db38e52:0a83dac8c779
{'status': 'uneventful'}
real 0m34.106s
user 0m30.524s
sys 0m2.514s
```
This does not create a snapshot (the bad behavior)
```
15:58:47 softwareheritage@belvedere:5432=> select * from origin o inner join origin_visit_status ovs on o.id=ovs.origin where o.url = 'https://foss.heptapod.net/mercurial/tortoisehg/thg' and ovs.type='hg' order by date desc;
(ve) swhworker@worker0:~/swh-loader-mercurial$ time swh loader run mercurial_from_disk https://foss.heptapod.net/mercurial/tortoisehg/thg
INFO:swh.loader.mercurial.LoaderFromDisk:Load origin 'https://foss.heptapod.net/mercurial/tortoisehg/thg' with type 'hg'
requesting all changes
adding changesets
adding manifests
adding file changes
added 19929 changesets with 32270 changes to 1595 files
new changesets bac32db38e52:0a83dac8c779
{'status': 'uneventful'}
real 0m32.484s
user 0m19.929s
sys 0m1.139s
```
This now do create a snapshot nonetheless (the same as before since no change):
```
16:03:28 swh@db1:5432=> select * from origin o inner join origin_visit_status ovs on o.id=ovs.origin where o.url = 'https://foss.heptapod.net/mercurial/tortoisehg/thg' and ovs.type='hg' order by date desc limit 2;