Error encountered with remove

Matt Nordhoff mnordhoff at mattnordhoff.com
Mon Dec 10 04:36:16 GMT 2007


kate rhodes wrote:
> first i called bzr remove --force "g.txt"
> 
> Then i did the following and received the error that it asked me to send you.
> Why did I remove it twice you ask? because i was testing a script that
> removed it for me and then wanted to check what it would do if called
> twice.
> 
> masukomi at moobox:~/workspace/temp$ bzr remove g.txt
> bzr: ERROR: exceptions.TypeError: expected string or buffer
> 
> Traceback (most recent call last):
>   File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line
> 800, in run_bzr_catch_errors
>     return run_bzr(argv)
>   File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line
> 758, in run_bzr
>     ret = run(*run_argv)
>   File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line
> 492, in run_argv_aliases
>     return self.run(**all_cmd_args)
>   File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 1121, in run
>     force=file_deletion_strategy=='force')
>   File "/usr/lib/python2.5/site-packages/bzrlib/mutabletree.py", line
> 50, in tree_write_locked
>     return unbound(self, *args, **kwargs)
>   File "/usr/lib/python2.5/site-packages/bzrlib/workingtree.py", line
> 1847, in remove
>     if not self.is_ignored(path[1]) and (
>   File "/usr/lib/python2.5/site-packages/bzrlib/workingtree.py", line
> 1604, in is_ignored
>     return self._ignoreglobster.match(filename)
>   File "/usr/lib/python2.5/site-packages/bzrlib/globbing.py", line 213, in match
>     match = regex.match(filename)
> TypeError: expected string or buffer
> 
> bzr 0.91.0 on python 2.5.1.final.0 (linux2)
> arguments: ['/usr/bin/bzr', 'remove', 'g.txt']
> 
> ** please send this report to bazaar at lists.ubuntu.com

Using 1.0rc2 and bzr.dev, this works fine. "g.txt does not exist.".
-- 



More information about the bazaar mailing list