Bzr bails on "diff"

Bug #275861 reported by robsta
2
Affects Status Importance Assigned to Milestone
Bazaar
Triaged
High
Unassigned

Bug Description

rstaudinger@meqbuq:~/Desktop/Devel/gtk-css-engine-corrupted$ bzr diff
=== modified file 'HACKING'
bzr: ERROR: bzrlib.errors.NoSuchRevision: KnitPackRepository('file:///home/rstaudinger/Desktop/Devel/gtk-css-engine-corrupted/.bzr/repository/') has no revision <email address hidden>

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 857, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 797, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 499, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 818, in ignore_pipe
    result = func(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 1508, in run
    extra_trees=extra_trees, using=using)
  File "/usr/lib/python2.5/site-packages/bzrlib/diff.py", line 429, in show_diff_trees
    return differ.show_diff(specific_files, extra_trees)
  File "/usr/lib/python2.5/site-packages/bzrlib/diff.py", line 853, in show_diff
    return self._show_diff(specific_files, extra_trees)
  File "/usr/lib/python2.5/site-packages/bzrlib/diff.py", line 913, in _show_diff
    self.diff(file_id, oldpath, newpath)
  File "/usr/lib/python2.5/site-packages/bzrlib/diff.py", line 936, in diff
    new_path, old_kind, new_kind)
  File "/usr/lib/python2.5/site-packages/bzrlib/diff.py", line 514, in _diff_many
    new_kind)
  File "/usr/lib/python2.5/site-packages/bzrlib/diff.py", line 636, in diff
    old_date = _patch_header_date(self.old_tree, file_id, old_path)
  File "/usr/lib/python2.5/site-packages/bzrlib/diff.py", line 441, in _patch_header_date
    mtime = tree.get_file_mtime(file_id, path)
  File "/usr/lib/python2.5/site-packages/bzrlib/workingtree_4.py", line 1605, in get_file_mtime
    return self._repository.get_revision(last_changed_revision).timestamp
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/knitrepo.py", line 222, in get_revision
    return self.get_revision_reconcile(revision_id)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 1118, in get_revision_reconcile
    return self._get_revisions([revision_id])[0]
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 138, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 1136, in _get_revisions
    raise errors.NoSuchRevision(self, record.key[0])
NoSuchRevision: KnitPackRepository('file:///home/rstaudinger/Desktop/Devel/gtk-css-engine-corrupted/.bzr/repository/') has no revision <email address hidden>

bzr 1.7 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'diff']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_GB.UTF-8'
plugins:
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  svn /usr/lib/python2.5/site-packages/bzrlib/plugins/svn [0.4.13]
*** 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.
rstaudinger@meqbuq:~/Desktop/Devel/gtk-css-engine-corrupted$

Revision history for this message
robsta (robsta) wrote :
Revision history for this message
robsta (robsta) wrote :

Add whole repository.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Thanks for the bug report.

This is caused by bzr diff having trouble dealing with the ghost revisions in history. I remember there was an open bug about this but I can't find it at the moment.

FWIW, your repository is ok (not corrupt), it's just that bzr is having trouble reading it at the moment.

Changed in bzr:
importance: Undecided → High
status: New → Triaged
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.