BZR crash
John Arbash Meinel
john at arbash-meinel.com
Fri Feb 1 19:13:44 GMT 2008
Peter Wolf wrote:
> c:\work\test\vra>ren peter.properties foo
>
> c:\work\test\vra>bzr remove peter.properties
> peter.properties does not exist.
>
> c:\work\test\vra>ren foo peter.properties
>
> c:\work\test\vra>bzr remove peter.properties
> bzr: ERROR: exceptions.TypeError: expected string or buffer
>
> 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 "bzrlib\builtins.pyc", line 1120, in run
> File "bzrlib\mutabletree.pyc", line 51, in tree_write_locked
> File "bzrlib\workingtree.pyc", line 1895, in remove
> File "bzrlib\workingtree.pyc", line 1656, in is_ignored
> File "bzrlib\globbing.pyc", line 213, in match
> TypeError: expected string or buffer
>
> bzr 0.92.0 on python 2.5.1.final.0 (win32)
> arguments: ['bzr', 'remove', 'peter.properties']
> encoding: 'cp1252', fsenc: 'mbcs', lang: None
> plugins:
> launchpad
> C:\tools\Bazaar\lib\library.zip\bzrlib\plugins\launchpad
> [unknown]
> multiparent
> C:\tools\Bazaar\lib\library.zip\bzrlib\plugins\multiparen
> t.pyc [unknown]
>
> ** Please send this report to bazaar at lists.ubuntu.com
> with a description of what you were doing when the
> error occurred.
This is a known bug which has been fixed in newer versions of Bazaar.
https://bugs.launchpad.net/bzr/+bug/152811
It is happening because you are removing the same file twice. The fix is
in bzr 1.0+
I wonder if there isn't a second bug that the "bzr rm peter.properties"
is actually removing the meta-data, and then complaining that the file
doesn't exist. It seems to me that if the file isn't there, the "bzr rm"
shouldn't care.
John
=:->
More information about the bazaar
mailing list