AttributeError: 'CHKInventoryRepository' object has no attribute 'get_ancestry'

Bug #1040560 reported by Daniel Holbach
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bzr-stats
Fix Released
High
Jelmer Vernooij
bzr-stats (Ubuntu)
Fix Released
High
Jelmer Vernooij

Bug Description

daniel@daydream:~/bzr/ubuntu-packaging-guide$ bzr stats
getting ancestry
bzr: ERROR: exceptions.AttributeError: 'CHKInventoryRepository' object has no attribute 'get_ancestry'

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 930, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1141, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 673, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 697, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/stats/cmds.py", line 274, in run
    info = get_info(a_branch.repository, last_rev)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/stats/cmds.py", line 169, in get_info
    ancestry = a_repo.get_ancestry(revision)[1:]
AttributeError: 'CHKInventoryRepository' object has no attribute 'get_ancestry'

bzr 2.6b2 on python 2.7.3 (Linux-3.5.0-11-generic-x86_64-with-
    Ubuntu-12.10-quantal)
arguments: ['/usr/bin/bzr', 'stats']
plugins: bash_completion[2.6b2], builddeb[2.7.0dev], builder[0.7.3],
    bzrtools[2.5.0], changelog_merge[2.6b2], git[0.6.9], launchpad[2.6b2],
    netrc_credential_store[2.6b2], news_merge[2.6b2], po_merge[2.6b2],
    stats[0.2.0dev], weave_fmt[2.6b2]
encoding: 'utf-8', fsenc: 'UTF-8', lang: 'de_DE.UTF-8'

*** 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.
daniel@daydream:~/bzr/ubuntu-packaging-guide$

Related branches

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 1040560] [NEW] AttributeError: 'CHKInventoryRepository' object has no attribute 'get_ancestry'

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

get_ancestry was deprecated in bzr-2.4b4. And was probably just
removed in bzr-2.6b2.

I'm guessing that bzr-stats just never got updated.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlA2DdkACgkQJdeBCYSNAAOuFgCfZ3hGpNw0B76t7ucULa5bVemN
WcoAmwaf/NF6wLGRJGQ4m9NCA/Az3NMm
=SHbd
-----END PGP SIGNATURE-----

Jelmer Vernooij (jelmer)
Changed in bzr-stats (Ubuntu):
importance: Undecided → High
Changed in bzr-stats:
status: New → Triaged
importance: Undecided → High
Changed in bzr-stats (Ubuntu):
status: New → Triaged
Jelmer Vernooij (jelmer)
Changed in bzr-stats:
assignee: nobody → Jelmer Vernooij (jelmer)
status: Triaged → In Progress
Jelmer Vernooij (jelmer)
Changed in bzr-stats (Ubuntu):
assignee: nobody → Jelmer Vernooij (jelmer)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package bzr-stats - 0.1.0+bzr51-0ubuntu1

---------------
bzr-stats (0.1.0+bzr51-0ubuntu1) quantal; urgency=medium

  * New upstream snapshot.
   + Fixes compatibility with bzr 2.6. LP: #1040560
 -- Jelmer Vernooij <email address hidden> Thu, 23 Aug 2012 17:45:00 +0200

Changed in bzr-stats (Ubuntu):
status: Triaged → Fix Released
Changed in bzr-stats:
status: In Progress → Fix Committed
Jelmer Vernooij (jelmer)
Changed in bzr-stats:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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