Backups: accomodate remove-all at restoration
The -remove-all-repositories
of gitaly-backup
is finally put to use in 76b74f63c8bf (see also hgitaly#139 (closed)).
However, we cannot use it in Heptapod right away, because it will also remove the namespaces hierarchy that we are using for group-level Mercurial configuration (caught by our functional tests). Hence in Heptapod 0.38, we will have to filter out those storages that have a HGitaly address. Upstream concern is about the race in repositories created between the restoration trigger and actual restoration, probably not so much a concert for us (for the time being).
To get back to upstream we will need either:
- to find another storage solution for group-level configuration
- to make HGitaly servers completely separate from Gitaly servers, but that is very far away and cannot accomodate any legacy (hg-git based) project.