NoSuchRevision in _iter_inventories during diff -r 38:../ec2

Bug #894521 reported by Roger Peppe
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Expired
Undecided
Unassigned

Bug Description

this crashes:

bzr diff -r 38:../ec2

this does not:

bzr diff -r revno:38:../ec2

from the documentation in help revisionspec, it
seems like this should work.

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 946, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1150, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 699, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 721, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1165, in ignore_pipe
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/builtins.py", line 2087, in run
    file_list, revision, old, new, self.add_cleanup, apply_view=True)
  File "/usr/lib/python2.7/dist-packages/bzrlib/diff.py", line 401, in get_trees_and_branches_to_diff_locked
    old_tree = _get_tree_to_diff(old_revision_spec, working_tree, branch)
  File "/usr/lib/python2.7/dist-packages/bzrlib/diff.py", line 453, in _get_tree_to_diff
    return spec.as_tree(branch)
  File "/usr/lib/python2.7/dist-packages/bzrlib/revisionspec.py", line 253, in as_tree
    return self._as_tree(context_branch)
  File "/usr/lib/python2.7/dist-packages/bzrlib/revisionspec.py", line 263, in _as_tree
    return context_branch.repository.revision_tree(revision_id)
  File "/usr/lib/python2.7/dist-packages/bzrlib/decorators.py", line 154, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/vf_repository.py", line 1771, in revision_tree
    inv = self.get_inventory(revision_id)
  File "/usr/lib/python2.7/dist-packages/bzrlib/decorators.py", line 154, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/vf_repository.py", line 1669, in get_inventory
    return self.iter_inventories([revision_id]).next()
  File "/usr/lib/python2.7/dist-packages/bzrlib/repofmt/groupcompress_repo.py", line 981, in _iter_inventories
    raise errors.NoSuchRevision(self, record.key)
NoSuchRevision: CHKInventoryRepository('file:///home/username/go/src/pkg/launchpad.net/goamz/ec2-old/.bzr/repository/') has no revision ('User <email address hidden>',)

ProblemType: Crash
DistroRelease: Ubuntu 11.10
Package: bzr 2.4.1-1ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-13.22-generic 3.0.6
Uname: Linux 3.0.0-13-generic x86_64
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
BzrDebugFlags: set()
BzrVersion: 2.4.1
CommandLine: ['/usr/bin/bzr', 'diff', '-r', '38:../ec2']
CrashDb: bzr
Date: Thu Nov 24 19:56:00 2011
ExecutablePath: /usr/bin/bzr
FileSystemEncoding: UTF-8
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
InterpreterPath: /usr/bin/python2.7
Locale: en_GB.UTF-8
PackageArchitecture: all
Platform: Linux-3.0.0-13-generic-x86_64-with-Ubuntu-11.10-oneiric
ProcCmdline: /usr/bin/python /usr/bin/bzr diff -r 38:../ec2
ProcEnviron:
 LANG=en_GB.UTF-8
 LANGUAGE=en_GB:en
 PATH=(custom, user)
 SHELL=/usr/local/plan9/bin/rc
PythonVersion: 2.7.2
SourcePackage: bzr
Title: bzr crashed with NoSuchRevision in _iter_inventories(): CHKInventoryRepository('file:///home/username/go/src/pkg/launchpad.net/goamz/ec2-old/.bzr/repository/') has no revision ('User <email address hidden>',)
UpgradeStatus: Upgraded to oneiric on 2011-11-23 (1 days ago)
UserEncoding: UTF-8
UserGroups: adm admin cdrom dialout libvirtd lpadmin plugdev sambashare

Revision history for this message
Roger Peppe (rogpeppe) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Possible regression detected

This crash has the same stack trace characteristics as bug #819415. However, the latter was already fixed in an earlier package version than the one in this report. This might be a regression or because the problem is in a dependent package.

tags: removed: need-duplicate-check
tags: added: regression-retracer
Roger Peppe (rogpeppe)
visibility: private → public
Martin Pool (mbp)
summary: - bzr crashed on diff -r 38:../ec2
+ NoSuchRevision in _iter_inventories during diff -r 38:../ec2
Changed in bzr (Ubuntu):
importance: Undecided → Medium
Martin Pool (mbp)
no longer affects: bzr (Ubuntu)
description: updated
Revision history for this message
Martin Pool (mbp) wrote :

The help does definitely imply they would be treated the same. Could you please attach the two branches, and `log --show-ids -r38` in each of them.

Changed in bzr:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Bazaar because there has been no activity for 60 days.]

Changed in bzr:
status: Incomplete → Expired
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.