bzr bug
Michael Hudson
michael.hudson at canonical.com
Tue Oct 2 09:39:00 BST 2007
Grinchishin V. wrote:
> bzr: ERROR: exceptions.UnboundLocalError: local variable 'b' referenced
> before assignment
>
> Traceback (most recent call last):
> File "C:\usr\Python\Lib\site-packages\bzrlib\commands.py", line 800,
> in run_bzr_catch_errors
> return run_bzr(argv)
> File "C:\usr\Python\Lib\site-packages\bzrlib\commands.py", line 758,
> in run_bzr
> ret = run(*run_argv)
> File "C:\usr\Python\Lib\site-packages\bzrlib\commands.py", line 492,
> in run_argv_aliases
> return self.run(**all_cmd_args)
> File "C:\usr\Python\Lib\site-packages\bzrlib\commands.py", line 768,
> in ignore_pipe
> result = func(*args, **kwargs)
> File "C:\usr\Python\Lib\site-packages\bzrlib\builtins.py", line 2123,
> in run
> tree = b.basis_tree()
> UnboundLocalError: local variable 'b' referenced before assignment
>
> bzr 0.91.0 on python 2.5.1.final.0 (win32)
> arguments: ['C:\\usr\\Python\\Scripts\\bzr', 'cat', '-r75',
> '/doc/plan_extra.doc']
>
This bug is still present in bzr.dev; go to a directory that's _not_ in
a bazaar branch and run "bzr cat foo". I haven't drunk enough coffee
yet to work out what the code in cmd_cat.run is trying to do (it's a bit
contorted, though), but this isn't it :-)
Cheers,
mwh
More information about the bazaar
mailing list