bzr push of git-repo failed--ERROR: exceptions.TypeError: add_inventory_by_delta() takes exactly 5 arguments (6 given)

Bug #691157 reported by Pablo Hörtner
This bug report is a duplicate of:  Bug #532631: Error while trying to push to bzr. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Undecided
Unassigned

Bug Description

I need to upload a git-repository to Launchpad (which uses bazaar), which I am using the bzr-git plugin for.

At the beginning everything seems to work fine …

redtux@repo:~/src/radar$ bzr push lp:~ossim/+junk/ossim-git
- 102KB 24KB/s | fetching revisions 0/5

Unfortunately, at the end I get an error and https://code.launchpad.net/~ossim/+junk/ossim-git remains empty.

Bazaar traceback:
bzr: ERROR: exceptions.TypeError: add_inventory_by_delta() takes exactly 5 arguments (6 given)

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 853, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1055, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 661, in run_argv_aliases
    return self.run_direct(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 665, in run_direct
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 122, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 156, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 1146, in run
    use_existing_dir=use_existing_dir)
  File "/usr/lib/python2.6/dist-packages/bzrlib/push.py", line 141, in _show_push_branch
    remember, create_prefix)
  File "/usr/lib/python2.6/dist-packages/bzrlib/bzrdir.py", line 1262, in push_branch
    repository_to.fetch(source.repository, revision_id=revision_id)
  File "/usr/lib/python2.6/dist-packages/bzrlib/remote.py", line 1333, in fetch
    find_ghosts=find_ghosts, fetch_spec=fetch_spec)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/fetch.py", line 430, in fetch
    mapping=mapping, fetch_spec=fetch_spec)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/fetch.py", line 455, in fetch_refs
    pack_hint = self.fetch_objects(determine_wants, mapping, pb)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/fetch.py", line 544, in fetch_objects
    wants, pb)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/fetch.py", line 403, in import_git_objects
    parent_invs_cache)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/git/fetch.py", line 329, in import_git_commit
    base_inv)
TypeError: add_inventory_by_delta() takes exactly 5 arguments (6 given)

bzr 2.1.1 on python 2.6.5 (Linux-2.6.32-26-generic-pae-i686-with-Ubuntu-10.04-lucid)
arguments: ['/usr/bin/bzr', 'push', 'lp:~ossim/+junk/ossim-git']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [2.1.0]
  git /usr/lib/python2.6/dist-packages/bzrlib/plugins/git [0.4.3]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [2.1.1]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [2.1.1]
  news_merge /usr/lib/python2.6/dist-packages/bzrlib/plugins/news_merge [2.1.1]

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.

redtux@repo:~/src/radar$ bzr --version
Bazaar (bzr) 2.1.1
  Python interpreter: /usr/bin/python 2.6.5
  Python standard library: /usr/lib/python2.6
  Platform: Linux-2.6.32-26-generic-pae-i686-with-Ubuntu-10.04-lucid
  bzrlib: /usr/lib/python2.6/dist-packages/bzrlib
  Bazaar configuration: /home/redtux/.bazaar
  Bazaar log file: /home/redtux/.bzr.log

Copyright 2005-2010 Canonical Ltd.
http://bazaar-vcs.org/

bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.

Bazaar is part of the GNU Project to produce a free operating system.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This was fixed in newer versions of Bazaar (I believe 2.2.0).

Changed in bzr:
status: New → Fix Released
Revision history for this message
Pablo Hörtner (redtux2000) wrote :

Fine! So will there be a backport in this case? I am using Ubuntu 10.04.1 LTS "Lucid Lynx".

Revision history for this message
Max Bowsher (maxb) wrote :

There are no current plans for a backport via the Ubuntu Backports system. I would advise you to use the official Bazaar PPA at https://launchpad.net/~bzr/+archive/ppa, which contains backports of the most recent release of Bazaar and many plugins.

Revision history for this message
Pablo Hörtner (redtux2000) wrote :

Good advice! Worked great, thank you! If this is a duplicate and no backports are planned, you can close this bug. Sorry for not having noticed bug #532631 before.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.