I used this git-remote-hg version for a while and it worked fine... until this morning :)
$ hg --version
Mercurial Distributed SCM (version 4.6)
$ git clone hg::https://foo/bar/yzodb yzodb
Clonage dans 'yzodb'...
requesting all changes
adding changesets
adding manifests
adding file changes
added 508 changesets with 1381 changes to 164 files (+1 heads)
new changesets 2c831d24c6cf:8739b3153c04
Traceback (most recent call last):
File "/home/eloi/bin/git-remote-hg", line 1781, in <module>
sys.exit(main(sys.argv))
File "/home/eloi/bin/git-remote-hg", line 1762, in main
do_import(parser)
File "/home/eloi/bin/git-remote-hg", line 779, in do_import
export_bookmark(repo, bmark)
File "/home/eloi/bin/git-remote-hg", line 629, in export_bookmark
export_ref(repo, bmark, 'bookmarks', head)
File "/home/eloi/bin/git-remote-hg", line 529, in export_ref
revs = revwalk(repo, ename, head)
File "/home/eloi/bin/git-remote-hg", line 506, in revwalk
pending.add(int(b))
TypeError: int() argument must be a string or a number, not 'changectx'
fatal: stream ends early
fast-import: dumping crash report to /home/eloi/dev/yzodb/.git/fast_import_crash_17297
fatal: Error while running fast-import```
I used this git-remote-hg version for a while and it worked fine... until this morning :)