mnauw / git-remote-hg

Transparent bidirectional bridge between Git and Mercurial for Git
GNU General Public License v2.0
62 stars 5 forks source link

Crash when cloning or pulling some repositories #18

Closed azmeuk closed 6 years ago

azmeuk commented 6 years ago

Since a few weeks, some repositories I work with fail to pull. Each time the error looks like this:

git clone hg::https://***********/hg/foobar                                                                                                                  
Clonage dans 'foobar'...
requesting all changes
adding changesets
adding manifests
adding file changes
added 691 changesets with 4745 changes to 1271 files
new changesets 1ce35169e0be:f4a8ebebef69
progress revision walk 'bookmarks/master' (690/690)
progress revision 0 'master' (0/690)
progress revision 101 'master' (100/690)
progress revision 201 'master' (200/690)
progress revision 301 'master' (300/690)
progress revision 401 'master' (400/690)
progress revision 501 'master' (500/690)
progress revision 601 'master' (600/690)
Traceback (most recent call last):
  File "/home/azmeuk/bin/git-remote-hg", line 1788, in <module>
    sys.exit(main(sys.argv))
  File "/home/azmeuk/bin/git-remote-hg", line 1769, in main
    do_import(parser)
  File "/home/azmeuk/bin/git-remote-hg", line 789, in do_import
    export_tag(repo, tag)
  File "/home/azmeuk/bin/git-remote-hg", line 632, in export_tag
    export_ref(repo, tag, 'tags', repo[hgref(tag)])
  File "/usr/lib/python2.7/site-packages/mercurial/localrepo.py", line 856, in __getitem__                                                                                      
    return context.changectx(self, changeid)
  File "/usr/lib/python2.7/site-packages/mercurial/context.py", line 439, in __init__
    (changeid, type(changeid)))
mercurial.error.ProgrammingError: unsupported changeid 'production_2018_02_27_16_32_44' of type <type 'str'>                                                                    
fatal: stream ends early
fast-import: dumping crash report to /home/azmeuk/dev/foobar/.git/fast_import_crash_3951
fatal: Error while running fast-import

production_2018_02_27_16_32_44 is a mercurial tag in the distant repository.