hggit 1.1.2 pull from gitbub: `TypeError: 'generator' object cannot be converted to 'Sequence'`
Updated to hggit 1.1.2, now can not pull from github. Reverted to hggit 1.1.1 and it works. Don't know if its specific to the repo I'm working with or more general
Mercurial Distributed SCM (version 6.7.3)
hggit external 1.1.2 (dulwich 0.22.1)
$ hg pull
pulling from git@github.com:errael/astrology-castro.git
importing 2 git commits
** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]
** Mercurial Distributed SCM (version 6.7.3)
** Extensions loaded: convert, evolve 11.1.3, extdiff, fsmonitor, graphlog, hggit 1.1.2 (dulwich 0.22.1), histedit, purge, rebase, share, topic 1.1.3, transplant
Traceback (most recent call last):
File "/home/err/.venv/bin/hg", line 59, in <module>
dispatch.run()
File "/home/err/.venv/lib/python3.10/site-packages/mercurial/dispatch.py", line 142, in run
status = dispatch(req)
File "/home/err/.venv/lib/python3.10/site-packages/mercurial/dispatch.py", line 231, in dispatch
status = _rundispatch(req)
File "/home/err/.venv/lib/python3.10/site-packages/mercurial/dispatch.py", line 275, in _rundispatch
ret = _runcatch(req) or 0
File "/home/err/.venv/lib/python3.10/site-packages/mercurial/dispatch.py", line 456, in _runcatch
return _callcatch(ui, _runcatchfunc)
File "/home/err/.venv/lib/python3.10/site-packages/mercurial/dispatch.py", line 466, in _callcatch
return scmutil.callcatch(ui, func)
File "/home/err/.venv/lib/python3.10/site-packages/mercurial/scmutil.py", line 152, in callcatch
return func()
File "/home/err/.venv/lib/python3.10/site-packages/mercurial/dispatch.py", line 446, in _runcatchfunc
return _dispatch(req)
File "/home/err/.venv/lib/python3.10/site-packages/mercurial/dispatch.py", line 1271, in _dispatch
return runcommand(
File "/home/err/.venv/lib/python3.10/site-packages/mercurial/dispatch.py", line 904, in runcommand
ret = _runcommand(ui, options, cmd, d)
File "/home/err/.venv/lib/python3.10/site-packages/mercurial/dispatch.py", line 1283, in _runcommand
return cmdfunc()
File "/home/err/.venv/lib/python3.10/site-packages/mercurial/dispatch.py", line 1269, in <lambda>
d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
File "/home/err/.venv/lib/python3.10/site-packages/mercurial/util.py", line 1878, in check
return func(*args, **kwargs)
File "/home/err/.venv/lib/python3.10/site-packages/mercurial/util.py", line 1878, in check
return func(*args, **kwargs)
File "/home/err/.venv/lib/python3.10/site-packages/hgext/rebase.py", line 2174, in pullrebase
ret = orig(ui, repo, *args, **opts)
File "/home/err/.venv/lib/python3.10/site-packages/mercurial/util.py", line 1878, in check
return func(*args, **kwargs)
File "/home/err/.venv/lib/python3.10/site-packages/mercurial/util.py", line 1878, in check
return func(*args, **kwargs)
File "/home/err/.venv/lib/python3.10/site-packages/hgext3rd/evolve/__init__.py", line 565, in wrapmayobsoletewc
res = origfn(ui, repo, *args, **opts)
File "/home/err/.venv/lib/python3.10/site-packages/mercurial/util.py", line 1878, in check
return func(*args, **kwargs)
File "/home/err/.venv/lib/python3.10/site-packages/mercurial/commands.py", line 5577, in pull
modheads = exchange.pull(
File "/home/err/.venv/lib/python3.10/site-packages/hggit/util.py", line 100, in inner
return f(*args, **kwargs)
File "/home/err/.venv/lib/python3.10/site-packages/hggit/gitrepo.py", line 195, in exchangepull
pullop.cgresult = repo.githandler.fetch(remote, heads)
File "/home/err/.venv/lib/python3.10/site-packages/hggit/git_handler.py", line 381, in fetch
imported = self.import_git_objects(
File "/home/err/.venv/lib/python3.10/site-packages/hggit/git_handler.py", line 1081, in import_git_objects
self.import_git_commit(
File "/home/err/.venv/lib/python3.10/site-packages/hggit/git_handler.py", line 1141, in import_git_commit
files, gitlinks, git_renames = self.get_files_changed(
File "/home/err/.venv/lib/python3.10/site-packages/hggit/git_handler.py", line 2092, in get_files_changed
for change in changes:
File "/home/err/.venv/lib/python3.10/site-packages/dulwich/diff_tree.py", line 199, in tree_changes
for entry1, entry2 in entries:
File "/home/err/.venv/lib/python3.10/site-packages/dulwich/diff_tree.py", line 151, in walk_trees
todo.extend(reversed(_merge_entries(path, tree1, tree2)))
TypeError: 'generator' object cannot be converted to 'Sequence'