NoSuchRevision with -r pointing to a remote branch

Bug #650865 reported by Stuart Bishop
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Low
Unassigned

Bug Description

$ bzr diff -r lp:launchpad/devel
bzr: ERROR: bzrlib.errors.NoSuchRevision: CHKInventoryRepository('file:///home/stub/.canonical-bzr/launchpad/.bzr/repository/') has no revision ('<email address hidden>',)

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 912, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1112, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 690, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 705, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/home/stub/.bazaar/plugins/difftools/__init__.py", line 81, in run
    return super(cmd_diff, self).run(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1127, in ignore_pipe
    result = func(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 1972, in run
    file_list, revision, old, new, self.add_cleanup, apply_view=True)
  File "/usr/lib/python2.6/dist-packages/bzrlib/diff.py", line 403, in get_trees_and_branches_to_diff_locked
    old_tree = _get_tree_to_diff(old_revision_spec, working_tree, branch)
  File "/usr/lib/python2.6/dist-packages/bzrlib/diff.py", line 458, in _get_tree_to_diff
    return spec.as_tree(branch)
  File "/usr/lib/python2.6/dist-packages/bzrlib/revisionspec.py", line 257, in as_tree
    return self._as_tree(context_branch)
  File "/usr/lib/python2.6/dist-packages/bzrlib/revisionspec.py", line 267, in _as_tree
    return context_branch.repository.revision_tree(revision_id)
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 140, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 2566, in revision_tree
    inv = self.get_inventory(revision_id)
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 140, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 2382, in get_inventory
    return self.iter_inventories([revision_id]).next()
  File "/usr/lib/python2.6/dist-packages/bzrlib/repofmt/groupcompress_repo.py", line 899, in _iter_inventories
    raise errors.NoSuchRevision(self, record.key)
NoSuchRevision: CHKInventoryRepository('file:///home/stub/.canonical-bzr/launchpad/.bzr/repository/') has no revision ('<email address hidden>',)

You can report this problem to Bazaar's developers by running
    apport-bug /var/crash/bzr.1000.2010-09-29T06:40.crash
if a bug-reporting window does not automatically appear.

% bzr --version
$ bzr --version
Bazaar (bzr) 2.2.1
  Python interpreter: /usr/bin/python 2.6.5
  Python standard library: /usr/lib/python2.6
  Platform: Linux-2.6.32-25-generic-x86_64-with-Ubuntu-10.04-lucid
  bzrlib: /usr/lib/python2.6/dist-packages/bzrlib
  Bazaar configuration: /home/stub/.bazaar
  Bazaar log file: /home/stub/.bzr.log

Revision history for this message
Martin Pool (mbp) wrote :

I think what's happening here is that you're asking for a diff relative to a revision that's not actually in your local repository. If you pull the tip of devel, it should work.

Perhaps in this case we should run the diff against all the involved repositories.

summary: - NoSuchRevision: CHKInventoryRepository
+ NoSuchRevision with -r pointing to a remote branch
Changed in bzr:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Stuart Bishop (stub) wrote :

Yes, diffing against the remote branch works fine if I have an up to date copy of the remote branch in my repository.

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
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.