hg-git
hg-git copied to clipboard
AttributeError Exception at push: 'DiskObjectStore' object has no attribute 'generate_pack_data'
Hello, trying for the first time hg-git this morning on a Bionic Beaver everything ran smoothly, but installing it now on a Xenial Xerus laptop and using it, that exception was raised. Reporting it just in case it is useful. Thanks.
balqui@balqui-Latitude-7490:~/Escritorio/RemoteBackups/hgbb$ hg clone [email protected]:balqui/pydamelo.git pydamelo
importing git objects into hg
updating to branch default
14 files updated, 0 files merged, 0 files removed, 0 files unresolved
balqui@balqui-Latitude-7490:~/Escritorio/RemoteBackups/hgbb$ cd pydamelo/
balqui@balqui-Latitude-7490:~/Escritorio/RemoteBackups/hgbb/pydamelo$ hg commit -m'test on laptop'
balqui@balqui-Latitude-7490:~/Escritorio/RemoteBackups/hgbb/pydamelo$ hg push
pushing to [email protected]:balqui/pydamelo.git
searching for changes
adding objects
** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 2.7.12 (default, Nov 12 2018, 14:36:49) [GCC 5.4.0 20160609]
** Mercurial Distributed SCM (version 3.7.3)
** Extensions loaded: hggit
Traceback (most recent call last):
File "/usr/bin/hg", line 43, in
Try updating dulwich
pip install dulwich --upgrade
Thanks for the idea, but I have the same problem after updating to very recent versions Mercurial 4.9.1, hggit 0.8.12, and dulwich 0.18.5 - on dulwich 0.19.11 there is another, different issue (module dulwich.errors not found) that I have reported on the dulwich page.
The same issue is being reported on the bitbucket project so I will watch it and see how this develops: https://bitbucket.org/durin42/hg-git/issues/262/attributeerror-diskobjectstore-object-has
EDIT: The issue was solved by using dulwich 0.19.11 BUT installed via pip2 instead of via pip (!?). Leave this info here just in case anyone finds it useful.
I am trying to migrate my code from Mercurial to Git. I have Mercurial 3.9.2 installed in my system with hg-git from github (and i have pointed the hg-git repository in mercurial.ini file) with Python 2.7.15 and dulwich 0.19.11 . But i am getting the below error while doing so.
** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:24:40) [MSC v.1500 64 bit (AMD64)]
** Mercurial Distributed SCM (version 3.9.2)
** Extensions loaded: hggit
Traceback (most recent call last):
File "hg", line 45, in
It would be of great help if we could get a feasible solution for the same.
Thanks in advance !!