Skip to content
This repository was archived by the owner on Jul 24, 2020. It is now read-only.
This repository was archived by the owner on Jul 24, 2020. It is now read-only.

AttributeError Exception at push: 'DiskObjectStore' object has no attribute 'generate_pack_data' #336

@balqui

Description

@balqui

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 git@bitbucket.org: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 git@bitbucket.org: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
mercurial.dispatch.run()
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 55, in run
sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 121, in dispatch
ret = _runcatch(req)
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 223, in _runcatch
return _dispatch(req)
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 956, in _dispatch
cmdpats, cmdoptions)
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 713, in runcommand
ret = _runcommand(ui, options, cmd, d)
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 1087, in _runcommand
return checkargs()
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 1047, in checkargs
return cmdfunc()
File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 953, in
d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 993, in check
return func(args, **kwargs)
File "/usr/lib/python2.7/dist-packages/mercurial/commands.py", line 5739, in push
opargs=opts.get('opargs'))
File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line 195, in closure
return func(
(args + a), **kw)
File "/usr/local/lib/python3.5/dist-packages/hggit/util.py", line 60, in inner
return f(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/hggit/init.py", line 412, in exchangepush
pushop.cgresult = repo.githandler.push(remote.path, revs, force)
File "/usr/local/lib/python3.5/dist-packages/hggit/git_handler.py", line 403, in push
old_refs, new_refs = self.upload_pack(remote, revs, force)
File "/usr/local/lib/python3.5/dist-packages/hggit/git_handler.py", line 1119, in upload_pack
progress=callback)
File "/usr/lib/python2.7/dist-packages/dulwich/client.py", line 532, in send_pack
objects = generate_pack_contents(have, want)
File "/usr/local/lib/python3.5/dist-packages/hggit/git_handler.py", line 1098, in genpack
return self.git.object_store.generate_pack_data(
AttributeError: 'DiskObjectStore' object has no attribute 'generate_pack_data'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions