Following Setting up your account & first Mercurial repository hg push ssh://email@example.com/~********/example gave initially remote: firstname.lastname@example.org: Permission denied (publickey,keyboard-interactive). abort: no suitable response from remote hg!
but after further attempts (and creation of repos on the server via https://hg.sr.ht/create)
pushing to ssh://email@example.com/~*******/example searching for changes remote: Permission denied remote: pretxnopen.hgsrht-shell hook failed abort: push failed on remote
Note I can create a new repo via the web interface at https://hg.sr.ht/create and then can push to it.
I followed the getting instructions and have an ssh key in my profile - I assume it is correctly setup as as I can create repos via the web page and then push to them.
Additionally I go the following message when I attempted to reply to your message via email
Mail Delivery System MAILER-DAEMON@sr.ht
12:39 PM (6 minutes ago)
to me This is the mail system at host mail.sr.ht.
I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can delete your own text from the attached returned message.
The mail system
~firstname.lastname@example.org: host todo.sr.ht[220.127.116.11] said: 550 HTML emails are not permitted on SourceHut (in reply to end of DATA command)
Mmmh I don't understand -- you say you can create repos and push to them. What is the situation where you get the errors on push then?
No idea about the email reply error. Make another ticket for the todo.sr.ht project or ask around on IRC.
The problem is can't push a new repo that has not already been created on the server. When I follow the instructions problems happen at the point marked with ***** """ Creating a Mercurial repository
If you already have a Mercurial repository you want to push to hg.sr.ht, you can skip this step. If not, open up a shell and run the following commands to create a test repository for experimenting with:
mkdir example cd example hg init echo "Hello world!" >README.md hg add README.md hg commit -m "Initial commit"
This created a new Mercurial repository and added a README.md file to it, then created the initial commit. Pushing your repository to hg.sr.ht
Run the following command to push your changes to hg.sr.ht:
Since this repository didn't previously exist, you'll be prompted with a link to create the repository on hg.sr.ht - click that link and fill out the form on that page*****. You'll be redirected to your repository on hg.sr.ht: you're done!
""" at *** I don't get prompted with a link I get an error message saying the messages I submitted in my bug report.
I can't point to when this was fixed, but this is working now.
I was able to
hg pushto a non-existent repository and received the expected "click here to create" prompt:
$ hg push ssh://email@example.com/~nprescott/example pushing to ssh://firstname.lastname@example.org/~nprescott/example searching for changes remote: adding changesets remote: adding manifests remote: adding file changes remote: added 1 changesets with 1 changes to 1 files remote: remote: NOTICE remote: We saved your changes, but this repository does not exist. remote: Click here to create it: remote: https://hg.sr.ht/create?name=example remote: Your changes will be discarded in 20 minutes.