Does git.sr.ht support Mercurial repositories?
Updated
No. git.sr.ht is specifically the Git hosting service for sourcehut, so it hosts Git repositories only. If you need Mercurial, sourcehut runs a separate hg service for that purpose, and git.sr.ht itself points Mercurial users there.
What git.sr.ht actually hosts
git.sr.ht is described as "the git hosting service for sourcehut, the hacker's forge." Its feature set is built around Git repositories:
- Public, private, and "unlisted" repositories
- Fine-grained access control, including access for users without accounts
- Software release management
None of these features are presented as Mercurial-compatible. The service is scoped to Git, so a Mercurial repository does not belong here.
Where Mercurial users should go
The site's own guidance is direct: "For Mercurial support, see our hg service." That means Mercurial hosting lives on a different sourcehut service rather than on git.sr.ht.
If your goal is to host a Mercurial repository, use the hg service instead of git.sr.ht. If you are already on git.sr.ht and only work with Git, you can register or log in there to get started.
Quick check
| You want to host | Use |
|---|---|
| Git repositories | git.sr.ht |
| Mercurial repositories | sourcehut's hg service |
The distinction is by design: each sourcehut service targets one version control system, and git.sr.ht is the Git one.