bzr diff errors with "no revision"

Bug #429553 reported by Ben Schuiling
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Incomplete
Undecided
Unassigned

Bug Description

More often then not when I run bzr diff I get a "No revision" error message. It's not always reproducible, but seems to happen about 50% of the time.

Stack trace:

D:\bazaarSource\TRUNK>bzr diff
=== modified file 'Libraries/Private/include/PCandPDA/ScreenGrabber.h'
bzr: ERROR: bzrlib.errors.NoSuchRevision: KnitPackRepository('file:///D:/bazaarSource/.bzr/repository/') has no revision <email address hidden>
713233613-xwojla8myasq7hgl

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 835, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1030, in run_bzr
  File "bzrlib\commands.pyo", line 647, in run_argv_aliases
  File "bzrlib\commands.pyo", line 1045, in ignore_pipe
  File "bzrlib\builtins.pyo", line 1904, in run
  File "bzrlib\diff.pyo", line 432, in show_diff_trees
  File "bzrlib\diff.pyo", line 839, in show_diff
  File "bzrlib\diff.pyo", line 899, in _show_diff
  File "bzrlib\diff.pyo", line 925, in _diff
  File "bzrlib\diff.pyo", line 491, in _diff_many
  File "bzrlib\diff.pyo", line 613, in diff
  File "bzrlib\diff.pyo", line 444, in _patch_header_date
  File "bzrlib\workingtree_4.pyo", line 1731, in get_file_mtime
  File "bzrlib\decorators.pyo", line 138, in read_locked
  File "bzrlib\repofmt\knitrepo.pyo", line 208, in get_revision
  File "bzrlib\decorators.pyo", line 138, in read_locked
  File "bzrlib\repository.pyo", line 1826, in get_revision_reconcile
  File "bzrlib\decorators.pyo", line 138, in read_locked
  File "bzrlib\repository.pyo", line 1843, in _get_revisions
NoSuchRevision: KnitPackRepository('file:///D:/bazazrSource/.bzr/repository/'
) has no revision <email address hidden>

bzr 1.18 on python 2.5.4 (win32)
arguments: ['bzr', 'diff']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  bzrtools C:\Program Files\Bazaar\plugins\bzrtools [1.18]
  explorer C:\Program Files\Bazaar\plugins\explorer [0.7]
  extmerge C:\Program Files\Bazaar\plugins\extmerge [unknown]
  launchpad C:\Program Files\Bazaar\plugins\launchpad [1.18]
  netrc_credential_store C:\Program Files\Bazaar\plugins\netrc_credential_store
[1.18]
  qbzr C:\Program Files\Bazaar\plugins\qbzr [0.13.1]
  rebase C:\Program Files\Bazaar\plugins\rebase [0.5.3]
  svn C:\Program Files\Bazaar\plugins\svn [0.6.5]
*** 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.

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

Hi Ben,

Could you please run 'bzr info' here and paste the output (with names obscured if you wish) and also 'bzr check'.

Revision history for this message
Robert Collins (lifeless) wrote :

And bzr check please.

This looks like a branch pointer pointing at a revision that isn't present.

Vincent Ladeuil (vila)
Changed in bzr:
status: New → Incomplete
Revision history for this message
Ben Schuiling (benjaminschuiling) wrote :

Hi Martin and Robert - here's the results you were asking for.

Thanks!

D:\bazaarSource\TRUNK>bzr info
Repository checkout (format: rich-root-pack)
Location:
  repository checkout root: .
        checkout of branch: svn://xxx/TRUNK
         shared repository: D:/bazaarSource

D:\bazaarSource\TRUNK>bzr check
Checking working tree at 'D:/bazaarSource/TRUNK'.
Checking branch at 'file:///D:/bazaarSource/TRUNK/'.
Checking repository at 'file:///D:/bazaarSource/'.
checked repository <bzrlib.transport.local.LocalTransport url=file:///D:/bazaarSource/> format <RepositoryFormatKnitPack4>
  2366 revisions
 46893 file-ids
     9 ghost revisions
   419 inconsistent parents
checked branch file:///D:/bazaarSource/TRUNK/ format Branch format 6

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.