Help needed (Fwd: [Bug 162505] [qannotate] Got traceback using latest bzr.dev)

Alexander Belchenko bialix at ukr.net
Fri Nov 16 22:38:13 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John Arbash Meinel пишет:
> Alexander Belchenko wrote:
>> Help from our bzrlib core experts needed.
>> I think I ran into similar problem too in the past,
>> but I can't reproduce it on my win32 box now.
> 
>> Any suggestions or tips?
> 
> 
> ...
> 
>> Running 'bzr annotate NEWS' in the same directory gives the expected
>> output without any problems.
> 
>> I've tried a bunch of other files. Some of them did work, some others
>> did not. (Failed the same way as above.)
> 
>> If you need more info, don't hesitate to reply, I'll try to debug the
>> problem if you help me. (The computer is running Mac OS X 10.5, with
>> built-in Python 2.5.1)
> 
> Are you able to:
> 
>   bzr log -r \
>    revid:robertc at robertcollins.net-20051205071845-7048aac6bd4f9150
> 
> That seems like a rather old revision (2005). Even more, it doesn't seem
> to be in any of my bzr.dev branches.
> 
> So I'm not sure why qannotate would be interested in it.
> 
> It would be nice to know why it would be requesting that entry.

More info.

I found on my disk repository in which I'm able to reproduce this bug with qannotate.
It's my intelhex project repository. The problem only exists in this shared repository,
after cloning the branch to another place the problem is disappear. It's important.

Here the traceback I've got in my "strange" repository:

bzr arguments: [u'qann', u'intelhex.py']
opening working tree 'C:/work/MyCode/intelhex/trunk'
Traceback (most recent call last):
  File "bzrlib\commands.pyc", line 802, in run_bzr_catch_errors
  File "bzrlib\commands.pyc", line 758, in run_bzr
  File "bzrlib\commands.pyc", line 492, in run_argv_aliases
  File "C:\work\Bazaar\plugins-repo\qbzr\__init__.py", line 129, in run
  File "bzrlib\decorators.pyc", line 127, in read_locked
  File "bzrlib\repository.pyc", line 988, in get_revisions
  File "bzrlib\decorators.pyc", line 127, in read_locked
  File "bzrlib\repository.pyc", line 997, in _get_revisions
  File "bzrlib\store\revision\knit.pyc", line 88, in get_revisions
  File "bzrlib\store\revision\knit.pyc", line 106, in _get_serialized_revisions
NoSuchRevision:
KnitRevisionStore(VersionedFileStore(u'file:///C:/work/MyCode/intelhex/.bzr/repository/')) has no
revision bialix at ukr.net-20070225222714-zpykh5q7gaw4jgv9

I cd to shared repository .bzr dir and try to grep through *.kndx files.
I found 2 strange things:

1) In C:/work/MyCode/intelhex/.bzr/repository/ directory there is 2 copy of inventory.
One called 'inventory.knit/kndx' and another 'inventory.backup.knit/kndx'.
File modification for inventory.backup is November 11, 2007. IIRC, I've tried
to run reconcile or upgrade to knitpack format at that day. I'm not sure what I did
last, and .bzr.log will not help me here, because it did not have date/time stamps.
But I'd like to know what the code create inventory.backup.* files?

2) I grep through all kndx files in this strange repository for this revid
and found matching lines in several files *and* in inventory.backup.kndx too,
but not in plain inventory.kndx!

inventory.backup.kndx:33: bialix at ukr.net-20070225222714-zpykh5q7gaw4jgv9 fulltext 8350 675 29 :
knits\2f\intelhex.py-20050625003450-274757106101f4d5.kndx:59:
bialix at ukr.net-20070225222714-zpykh5q7gaw4jgv9 line-delta 56072 1009 20 :
knits\4b\bzrignore-20050625003515-d2f87121fe26cf01.kndx:17:
bialix at ukr.net-20070225222714-zpykh5q7gaw4jgv9 line-delta 2526 199 8 :
knits\7a\%52eadme.txt-20051222194804-6a8fbc6457976e15.kndx:14:
bialix at ukr.net-20070225222714-zpykh5q7gaw4jgv9 line-delta 7637 379 7 :
knits\c3\license.txt-20070225221047-6dacax7zn0bpin5s-1.kndx:3:
bialix at ukr.net-20070225222714-zpykh5q7gaw4jgv9 fulltext 0 964  :

So, the problem with qannotate probably in the fact it try to obtain all revisions
from revision.knit that mentioned in knits/xx/file-id.kndx index.
It's indeed incorrect, and will be fixed soon.
I'm just surprised by inventory.backup.knit/kndx files.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHPhvUzYr338mxwCURAoIGAJwNiX5xl43UKEQOSRPQtO24pEDowQCeMf51
D28zjbFEzVr5xipfLGVJeqg=
=2pq6
-----END PGP SIGNATURE-----



More information about the bazaar mailing list