4 ms·
Sourcehut has Mercurial support. It's open source and community maintained, and will remain supported for as long as the Hg community wants it to be. We recentl
by ddevault 7y ago
Sourcehut has Mercurial support. It's open source and community maintained, and will remain supported for as long as the Hg community wants it to be. We recently took our Hg team out to Paris to meet the Mercurial community at the first Hg conference, and discussed how we can get involved in the future of Mercurial and committed to continuing to improve our offering into the foreseeable future.
I've whipped together a script to help you migrate your repos to hg.sr.ht, for those interested:
https://hg.sr.ht/~sircmpwn/invertbucket https://hg.sr.ht/~sircmpwn/invertbucket
Let me know how it works out for you - I'd like to hear some test results before I post it to sr.ht-announce. Cheers :)
- vnorilo 7y agoEvaluating hg.sr.ht right now. On quick scan I saw that man.sr.ht has no API reference for hg - I was wondering what the status for that bit is. Thanks!
- Sir_Cmpwn 7y agoman.sr.ht has an API which is equivalent to git.sr.ht's API except for the portions which deal with querying git data: https://man.sr.ht/git.sr.ht/api.md https://man.sr.ht/git.sr.ht/api.md So you can create and manage repos over the API today. We're still figuring out a good API design for fetching hg data over REST.
- bumbledraven 7y agoThanks for making `invertbucket`! I used it to import my bitbucket repositories and ran into a few issues: 1. `invertbucket` should check that the machine has `hg` installed. (I accidentally ran it on a machine that didn't.) 2. Say my sr.ht username is "thegreengiant" and my bitbucket repository is "abc". At the end of its run, `invertbucket` says: > Imported to: https://hg.sr.ht/srht_owner/abc https://hg.sr.ht/srht_owner/abc That URL 404s. It would be an improvement if `invertbucket` replaced "srht_owner" with "~thegreengiant".
- Sir_Cmpwn 7y agoThanks for the feedback! Fixed on both counts.
- bumbledraven 7y agoWhat sr.ht URL path would I use to get a page to render as markdown? hg.sr.ht/~thegreengiant/raw/default/foo.md renders as text.
- Sir_Cmpwn 7y agoOnly the readme is rendered as markdown right now.
- bumbledraven 7y agoThanks.
- ntobjx 7y agoOne important feature is unfortunately missing: to also clone the wiki (which on Hg projects is a Hg repo in its own right). But that would probably pose a bigger problem, given that Sourcehut appears to have no feature like the (Gollum-based) Wikis in GitHub and GitLab (not sure what they were based on in Bitbucket, though).