[Pkg-bazaar-maint] Bug#551193: bzr-hg: crash trying to access revision data (‘diff’, ‘revert’, etc.)

Ben Finney ben+debian at benfinney.id.au
Fri Oct 16 12:58:05 UTC 2009


Package: bzr-hg
Version: 0.1-1
Severity: normal

I am using a clone of a Mercurial repository at Bitbucket. Mercurial
is able to clone the repository, and Bazaar can report information
about it, but any attempt to actually use the revision data causes
Bazaar to crash.

=====
$ hg clone ssh://hg@bitbucket.org/ned/coveragepy/ coveragepy/
requesting all changes
adding changesets
adding manifests
adding file changes
added 444 changesets with 1006 changes to 162 files
updating working directory
138 files updated, 0 files merged, 0 files removed, 0 files unresolved

$ cd coveragepy/
$ bzr info .
Standalone tree (format: mercurial)
Location:
  branch root: .

Related branches:
  parent branch: ssh://hg@bitbucket.org/ned/coveragepy/

$ bzr log --revision 400
------------------------------------------------------------
revno: 400
hg commit: f07bf1276ae4db60a6abfba05cde4e0c7a2fc32e
committer: Ned Batchelder <ned at nedbatchelder.com>
timestamp: Wed 2009-10-07 05:31:03 -0400
message:
  Basic plumbing for a --branch option.

$ bzr diff --change 400
=== modified file 'coverage/cmdline.py'
bzr: ERROR: mercurial.error.LookupError: data/coverage/cmdline.py.i at df03c414f23e: no node

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 835, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 1030, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 647, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 1045, in ignore_pipe
    result = func(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 1913, in run
    extra_trees=extra_trees, using=using)
  File "/usr/lib/python2.5/site-packages/bzrlib/diff.py", line 427, in show_diff_trees
    return differ.show_diff(specific_files, extra_trees)
  File "/usr/lib/python2.5/site-packages/bzrlib/diff.py", line 834, in show_diff
    return self._show_diff(specific_files, extra_trees)
  File "/usr/lib/python2.5/site-packages/bzrlib/diff.py", line 894, in _show_diff
    self._diff(file_id, oldpath, newpath, kind[0], kind[1])
  File "/usr/lib/python2.5/site-packages/bzrlib/diff.py", line 920, in _diff
    new_path, old_kind, new_kind)
  File "/usr/lib/python2.5/site-packages/bzrlib/diff.py", line 486, in _diff_many
    new_kind)
  File "/usr/lib/python2.5/site-packages/bzrlib/diff.py", line 624, in diff
    old_path, new_path)
  File "/usr/lib/python2.5/site-packages/bzrlib/diff.py", line 644, in diff_text
    from_text = _get_text(self.old_tree, from_file_id, from_path)
  File "/usr/lib/python2.5/site-packages/bzrlib/diff.py", line 640, in _get_text
    return tree.get_file(file_id, path).readlines()
  File "/usr/lib/python2.5/site-packages/bzrlib/revisiontree.py", line 72, in get_file
    return StringIO(self.get_file_text(file_id))
  File "/usr/lib/python2.5/site-packages/bzrlib/revisiontree.py", line 68, in get_file_text
    _, content = list(self.iter_files_bytes([(file_id, None)]))[0]
  File "/usr/lib/python2.5/site-packages/bzrlib/revisiontree.py", line 81, in iter_files_bytes
    for result in self._repository.iter_files_bytes(repo_desired_files):
  File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 2010, in iter_files_bytes
    for record in self.texts.get_record_stream(text_keys, 'unordered', True):
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/hg/versionedfiles.py", line 66, in get_record_stream
    include_delta_closure):
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/hg/versionedfiles.py", line 35, in get_record_stream
    node = self._revlog.rev(hgid)
  File "/usr/lib/pymodules/python2.5/mercurial/revlog.py", line 509, in rev
    raise LookupError(node, self.indexfile, _('no node'))
LookupError: data/coverage/cmdline.py.i at df03c414f23e: no node

bzr 1.17 on python 2.5.4 (linux2)
arguments: ['/usr/bin/bzr', 'diff', '--change', '400']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_AU.UTF-8'
plugins:
  builddeb             /usr/lib/python2.5/site-packages/bzrlib/plugins/builddeb [0.95dev]
  bzrtools             /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.17]
  dbus                 /usr/lib/python2.5/site-packages/bzrlib/plugins/dbus [0.1dev]
  etckeeper            /usr/lib/python2.5/site-packages/bzrlib/plugins/etckeeper [unknown]
  fastimport           /usr/lib/python2.5/site-packages/bzrlib/plugins/fastimport [0.9dev]
  git                  /usr/lib/python2.5/site-packages/bzrlib/plugins/git [0.4.1]
  gtk                  /usr/lib/python2.5/site-packages/bzrlib/plugins/gtk [0.97.0.final]
  hg                   /usr/lib/python2.5/site-packages/bzrlib/plugins/hg [0.1]
  launchpad            /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [1.17]
  loom                 /usr/lib/python2.5/site-packages/bzrlib/plugins/loom [1.4dev]
  netrc_credential_store /usr/lib/python2.5/site-packages/bzrlib/plugins/netrc_credential_store [1.17]
  pqm                  /usr/lib/python2.5/site-packages/bzrlib/plugins/pqm [1.4dev]
  search               /usr/lib/python2.5/site-packages/bzrlib/plugins/search [1.7dev]
  stats                /usr/lib/python2.5/site-packages/bzrlib/plugins/stats [unknown]
  svn                  /usr/lib/python2.5/site-packages/bzrlib/plugins/svn [1.0]
  upload               /usr/lib/python2.5/site-packages/bzrlib/plugins/upload [1.0dev]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.
$
=====

The contents of ‘$HOME/.bzr.log’ for the latest command above:

=====
Fri 2009-10-16 23:54:08 +1100
0.078  bzr arguments: [u'diff', u'--change', u'400']
0.133  looking for plugins in /home/bignose/.bazaar/plugins
0.134  looking for plugins in /usr/lib/python2.5/site-packages/bzrlib/plugins
0.386  Returning RevisionSpec RevisionSpec_before for before:400
0.394  bzr-hg: using Mercurial 1.3.1
0.487  bzr-hg: using Mercurial 1.3.1
4.636  Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 835, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 1030, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 647, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 1045, in ignore_pipe
    result = func(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 1913, in run
    extra_trees=extra_trees, using=using)
  File "/usr/lib/python2.5/site-packages/bzrlib/diff.py", line 427, in show_diff_trees
    return differ.show_diff(specific_files, extra_trees)
  File "/usr/lib/python2.5/site-packages/bzrlib/diff.py", line 834, in show_diff
    return self._show_diff(specific_files, extra_trees)
  File "/usr/lib/python2.5/site-packages/bzrlib/diff.py", line 894, in _show_diff
    self._diff(file_id, oldpath, newpath, kind[0], kind[1])
  File "/usr/lib/python2.5/site-packages/bzrlib/diff.py", line 920, in _diff
    new_path, old_kind, new_kind)
  File "/usr/lib/python2.5/site-packages/bzrlib/diff.py", line 486, in _diff_many
    new_kind)
  File "/usr/lib/python2.5/site-packages/bzrlib/diff.py", line 624, in diff
    old_path, new_path)
  File "/usr/lib/python2.5/site-packages/bzrlib/diff.py", line 644, in diff_text
    from_text = _get_text(self.old_tree, from_file_id, from_path)
  File "/usr/lib/python2.5/site-packages/bzrlib/diff.py", line 640, in _get_text
    return tree.get_file(file_id, path).readlines()
  File "/usr/lib/python2.5/site-packages/bzrlib/revisiontree.py", line 72, in get_file
    return StringIO(self.get_file_text(file_id))
  File "/usr/lib/python2.5/site-packages/bzrlib/revisiontree.py", line 68, in get_file_text
    _, content = list(self.iter_files_bytes([(file_id, None)]))[0]
  File "/usr/lib/python2.5/site-packages/bzrlib/revisiontree.py", line 81, in iter_files_bytes
    for result in self._repository.iter_files_bytes(repo_desired_files):
  File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 2010, in iter_files_bytes
    for record in self.texts.get_record_stream(text_keys, 'unordered', True):
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/hg/versionedfiles.py", line 66, in get_record_stream
    include_delta_closure):
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/hg/versionedfiles.py", line 35, in get_record_stream
    node = self._revlog.rev(hgid)
  File "/usr/lib/pymodules/python2.5/mercurial/revlog.py", line 509, in rev
    raise LookupError(node, self.indexfile, _('no node'))
LookupError: data/coverage/cmdline.py.i at df03c414f23e: no node

4.638  Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/plugin.py", line 407, in _get__version__
    version_string = _format_version_tuple(version_info)
  File "/usr/lib/python2.5/site-packages/bzrlib/__init__.py", line 90, in _format_version_tuple
    sub = version_info[4]
IndexError: tuple index out of range

4.639  return code 4
=====

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

Kernel: Linux 2.6.30-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.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bzr-hg depends on:
ii  bzr                           1.17-1     easy to use distributed version co
ii  mercurial                     1.3.1-1    scalable distributed version contr
ii  python                        2.5.4-2    An interactive high-level object-o
ii  python-central                0.6.11     register and build utility for Pyt

bzr-hg recommends no packages.

Versions of packages bzr-hg suggests:
ii  bzr-gtk                       0.97.0-1   provides graphical interfaces to B

-- no debconf information

-- 
 \           “A free society is one where it is safe to be unpopular.” |
  `\                                            —Adlai Ewing Stevenson |
_o__)                                                                  |
Ben Finney <ben at benfinney.id.au>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-bazaar-maint/attachments/20091016/89cd1137/attachment.pgp>


More information about the Pkg-bazaar-maint mailing list