Comment 6 for bug 295611

Revision history for this message
Jean-Francois Roy (jeanfrancois.roy) wrote : Re: NoSuchRevision: KnitPackRepository

I've just hit this this morning with bzr 1.13 final and bzr-svn 0.5.4dev:

0.032 bzr arguments: [u'diff']
0.044 looking for plugins in /Volumes/Crossroads/bahamut/.bazaar/plugins
0.089 looking for plugins in /Library/Python/2.6/site-packages/bzrlib/plugins
0.187 opening working tree '/<path>/sandbox'
0.498 Traceback (most recent call last):
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 716, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 911, in run_bzr
    ret = run(*run_argv)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 547, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 926, in ignore_pipe
    result = func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/builtins.py", line 1768, in run
    extra_trees=extra_trees, using=using)
  File "/Library/Python/2.6/site-packages/bzrlib/diff.py", line 428, in show_diff_trees
    return differ.show_diff(specific_files, extra_trees)
  File "/Library/Python/2.6/site-packages/bzrlib/diff.py", line 833, in show_diff
    return self._show_diff(specific_files, extra_trees)
  File "/Library/Python/2.6/site-packages/bzrlib/diff.py", line 893, in _show_diff
    self.diff(file_id, oldpath, newpath)
  File "/Library/Python/2.6/site-packages/bzrlib/diff.py", line 916, in diff
    new_path, old_kind, new_kind)
  File "/Library/Python/2.6/site-packages/bzrlib/diff.py", line 494, in _diff_many
    new_kind)
  File "/Library/Python/2.6/site-packages/bzrlib/diff.py", line 616, in diff
    old_date = _patch_header_date(self.old_tree, file_id, old_path)
  File "/Library/Python/2.6/site-packages/bzrlib/diff.py", line 440, in _patch_header_date
    mtime = tree.get_file_mtime(file_id, path)
  File "/Library/Python/2.6/site-packages/bzrlib/workingtree_4.py", line 1662, in get_file_mtime
    return self._repository.get_revision(last_changed_revision).timestamp
  File "/Library/Python/2.6/site-packages/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/repofmt/knitrepo.py", line 214, in get_revision
    return self.get_revision_reconcile(revision_id)
  File "/Library/Python/2.6/site-packages/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/repository.py", line 1280, in get_revision_reconcile
    return self._get_revisions([revision_id])[0]
  File "/Library/Python/2.6/site-packages/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/repository.py", line 1298, in _get_revisions
    raise errors.NoSuchRevision(self, record.key[0])
NoSuchRevision: KnitPackRepository('file://<path>/.bzr/repository/') has no revision svn-v4:be02940b-5f7b-422b-ba6c-1eb93f4884eb:<url>/branches/<branch name>:9673

The command was executed in a lightweight checkout of a native bzr branch whose parent is a remote SVN branch.