Re:Sunsetting Mercurial Support in Bitbucket
by ntobjx on Sunday September 01, 2019 @05:17AM
(#20851297)
One 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).
Re:Sunsetting Mercurial Support in Bitbucket
by bumbledraven on Tuesday August 20, 2019 @06:45PM
(#20752998)
Thanks 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
That URL 404s. It would be an improvement if `invertbucket` replaced "srht_owner" with "~thegreengiant".
Re:Sunsetting Mercurial Support in Bitbucket
by Sir_Cmpwn on Tuesday August 20, 2019 @07:50PM
(#20753408)
Thanks for the feedback! Fixed on both counts.
Re:Sunsetting Mercurial Support in Bitbucket
by bumbledraven on Thursday August 22, 2019 @08:36PM
(#20773675)
What 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.
Re:Sunsetting Mercurial Support in Bitbucket
by Sir_Cmpwn on Thursday August 22, 2019 @08:45PM
(#20773711)
Only the readme is rendered as markdown right now.
Re:Sunsetting Mercurial Support in Bitbucket
by bumbledraven on Friday August 23, 2019 @12:44AM
(#20774575)
Thanks.
Re:Sunsetting Mercurial Support in Bitbucket
by vnorilo on Tuesday August 20, 2019 @03:11PM
(#20750798)
Evaluating 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!
Re:Sunsetting Mercurial Support in Bitbucket
by Sir_Cmpwn on Tuesday August 20, 2019 @07:45PM
(#20753377)
man.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
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.
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
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 :)