need get_known_graph_ancestry() implementation

Bug #841134 reported by Jelmer Vernooij
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Hg Plugin
Fix Released
Jelmer Vernooij
bzr-hg (Debian)
Fix Released
bzr-hg (Ubuntu)
Fix Released

Bug Description

Imported from Debian bug

Package: bzr-hg
Version: 0.2.0~bzr511-1
Severity: normal

Attempting to view the tags in a Mercurial repository causes Bazaar to

$ bzr info
/usr/lib/python2.6/dist-packages/lazr/restfulclient/ UserWarning: Module paste was already imported from None, but /usr/lib/python2.6/dist-packages is being added to sys.path
  import pkg_resources
Standalone tree (format: hg)
  branch root: .

Related branches:
  parent branch: ssh://<email address hidden>/ned/coveragepy/

$ bzr log --log-format=line | wc -l
/usr/lib/python2.6/dist-packages/lazr/restfulclient/ UserWarning: Module paste was already imported from None, but /usr/lib/python2.6/dist-packages is being added to sys.path
  import pkg_resources

$ bzr tags
/usr/lib/python2.6/dist-packages/lazr/restfulclient/ UserWarning: Module paste was already imported from None, but /usr/lib/python2.6/dist-packages is being added to sys.path
  import pkg_resources
bzr: ERROR: exceptions.AttributeError: 'HgLocalRepository' object has no attribute 'revisions'

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 923, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 1123, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 688, in run_argv_aliases
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 710, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 1138, in ignore_pipe
    result = func(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 5517, in run
    revno = branch.revision_id_to_dotted_revno(revid)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 140, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 377, in revision_id_to_dotted_revno
    return self._do_revision_id_to_dotted_revno(revision_id)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 395, in _do_revision_id_to_dotted_revno
    result = self.get_revision_id_to_revno_map().get(revision_id)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 140, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 412, in get_revision_id_to_revno_map
    mapping = self._gen_revno_map()
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 432, in _gen_revno_map
    in self.iter_merge_sorted_revisions())
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 140, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 484, in iter_merge_sorted_revisions
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 140, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/", line 2706, in get_known_graph_ancestry
    known_graph = self.revisions.get_known_graph_ancestry(revision_keys)
AttributeError: 'HgLocalRepository' object has no attribute 'revisions'

bzr 2.3.1 on python 2.6.7 (Linux-3.0.0-1-powerpc64-ppc64-with-debian-wheezy-sid)
arguments: ['/usr/bin/bzr', 'tags']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_AU.UTF-8'
  bash_completion /usr/lib/python2.6/dist-packages/bzrlib/plugins/bash_completion [2.3.1]
  builddeb /usr/lib/python2.6/dist-packages/bzrlib/plugins/builddeb [2.7.0dev]
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [2.3.1]
  cvsps_import /usr/lib/python2.6/dist-packages/bzrlib/plugins/cvsps_import [unknown]
  etckeeper /usr/lib/python2.6/dist-packages/bzrlib/plugins/etckeeper [unknown]
  fastimport /usr/lib/python2.6/dist-packages/bzrlib/plugins/fastimport [0.11.0]
  git /usr/lib/python2.6/dist-packages/bzrlib/plugins/git [0.6.2]
  grep /usr/lib/python2.6/dist-packages/bzrlib/plugins/grep [0.4.0]
  hg /usr/lib/python2.6/dist-packages/bzrlib/plugins/hg [0.2.0dev]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [2.3.1]
  loom /usr/lib/python2.6/dist-packages/bzrlib/plugins/loom [2.2.1dev]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [2.3.1]
  news_merge /usr/lib/python2.6/dist-packages/bzrlib/plugins/news_merge [2.3.1]
  pipeline /usr/lib/python2.6/dist-packages/bzrlib/plugins/pipeline [1.1.0]
  pqm /usr/lib/python2.6/dist-packages/bzrlib/plugins/pqm [1.4.0dev]
  search /usr/lib/python2.6/dist-packages/bzrlib/plugins/search [1.7.0dev]
  stats /usr/lib/python2.6/dist-packages/bzrlib/plugins/stats [0.1.0]
  svn /usr/lib/python2.6/dist-packages/bzrlib/plugins/svn [1.0.5dev]
  upload /usr/lib/python2.6/dist-packages/bzrlib/plugins/upload [1.0.1dev]

*** 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
    including this traceback and a description of the problem.

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (900, 'stable')
Architecture: powerpc (ppc64)

Kernel: Linux 3.0.0-1-powerpc64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_AU.utf8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bzr-hg depends on:
ii bzr 2.3.1-2 easy to use distributed version co
ii mercurial 1.8.3-1 scalable distributed version contr
ii python 2.6.7-3 interactive high-level object-orie
ii python2.6 2.6.7-3 An interactive high-level object-o
ii python2.7 2.7.2-5 An interactive high-level object-o

bzr-hg recommends no packages.

bzr-hg suggests no packages.

-- no debconf information

Jelmer Vernooij (jelmer)
Changed in bzr-hg (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Changed in bzr-hg:
status: New → Fix Committed
importance: Undecided → Medium
assignee: nobody → Jelmer Vernooij (jelmer)
summary: - bzr-hg: request to view tags causes crash with ‘AttributeError:
- 'HgLocalRepository' object has no attribute 'revisions'’
+ need get_known_graph_ancestry()
summary: - need get_known_graph_ancestry()
+ need get_known_graph_ancestry() implementation
Changed in bzr-hg (Debian):
importance: Undecided → Unknown
status: New → Confirmed
Jelmer Vernooij (jelmer)
Changed in bzr-hg:
milestone: none → 0.1.1
status: Fix Committed → Fix Released
Changed in bzr-hg (Debian):
status: Confirmed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package bzr-hg - 0.2.0~bzr544-1

bzr-hg (0.2.0~bzr544-1) unstable; urgency=low

  * Use DEP-5 for copyright file.
  * New upstream snapshot.
   + Fixes compatibility with bzr 2.5.
   + Fixes viewing of tags. Closes: #640164
   + Fixes various locking issues. Closes: #635557, #634403
   + Adds get_known_graph_ancestry() implementation. LP: #841134

 -- Jelmer Vernooij <email address hidden> Thu, 26 Jan 2012 03:12:12 +0100

Changed in bzr-hg (Ubuntu):
status: Triaged → Fix Released
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.