In two different scenarios, I've encountered this error:
> hg pull gh://dstufft/setuptools -B use-packaging pulling from gh://dstufft/setuptools abort: ref 9382fa0c05e533400613e1c7c0a777cabb463390 not found on remote server
I have a local clone of a github repo and I want to pull some commits from another, related github fork. That fork was used to create a pull request, but the pull request now has merge conflicts, so I need to do a manual merge. Unfortunately, with hg-git, I seem to be unable to pull the changes from the fork.
I suspect the error occurs because the fork is not up to date with the changes I have locally, and you wouldn't expect them to be because the fork happened earlier.
This happens with Mercurial 3.1.1 and the latest hg-git (81e5e8e0185c).
I suspect you can replicate this finding as so:
> hg clone git+ssh://email@example.com:jaraco/setuptools > cd setuptools > hg pull git+ssh://firstname.lastname@example.org:dstufft/setuptools -B use-packaging
Obviously, when I get that branch merged, that example will no longer be valid, so let me know if it would be helpful to create a replication of the issue elsewhere.
I'm reporting this now to capture the issue, but I need to investigate further.