Assertion error in delta.py (_compare_trees)

John Arbash Meinel john at arbash-meinel.com
Wed Feb 28 23:46:29 GMT 2007


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

Marius Gedminas wrote:
> Introduction (feel free to skip it):
> 
>     I have a couple of bzr branches on my laptop, mirrored at
>     http://mg.pov.lt/fbreader/
> 
>     Today I created a new branch, commited a few changes and tried to
>     merge it into my mongo-contains-everything branch.  bzr 0.11 (Ubuntu
>     edgy) barfed on me, bzr st in that branch also started barfing
>     errors after the failed merge.  I decided that 0.11 was far from the
>     latest release, so I moved the corrupted branch away, scp'ed over a
>     fresh copy from the public mirror, and upgraded bzr to 0.14 from
>     http://bazaar-vcs.org/releases/debs/.
> 
> I cannot even run bzr st in any of the old branches that I had:
> 
>     mg at pitonas:~/www/fbreader/mg $ bzr st
>     bzr: ERROR: exceptions.AssertionError: 
...

> bzr st works, however, on the new branch I cloned today.
> 
> bzr check finds no errors:
> 
>     checked branch file:///home/mg/www/fbreader/mg/ format Bazaar-NG Metadir branch format 5
>     checked repository <bzrlib.transport.local.LocalTransport url=file:///home/mg/www/fbreader/mg/> format <RepositoryFormatKnit1>
>         33 revisions
>     1511 unique file texts
>     22608 repeated file texts
>     1135 weaves
> 
> Help!
> 
> (FWIW the error during merge that bzr 0.11 gave me was BzrCheckError:
> Internal check failed: file
> u'/home/mg/www/fbreader/mg/fbreader/opensimpad-0.9.0' entered as kind
> 'symlink' id 'opensimpad0.9.0-20060809170006-33d4eedf9209ebe4', now of
> kind 'directory'.  Subsequent runs of bzr st in that branch gave the
> same error.)
> 
> Marius Gedminas


This specific assertion error is because a path changed kind. Either a
file => directory or file => symlink or something like that. We have
traditionally not supported that operation, but in 0.15 we added support
for it. So you could try the current bzr.dev if you want.

You can also use this patch:
http://bundlebuggy.aaronbentley.com/request/%3C45C2140D.1040709@arbash-meinel.com%3E

Which changes the error so that you know which file is causing the
problem. And then you can fix it by doing "bzr rm path; bzr add path".

But as I said, in 0.15 the error goes away entirely, since it is now a
supported operation.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF5hRVJdeBCYSNAAMRAriQAJ9KR61A+gJ43P/ExRNdVZfNHPc4JQCgpD8n
yWXjG1PRQqwFNEvsBkrqipY=
=O7Hf
-----END PGP SIGNATURE-----



More information about the bazaar mailing list