[merge] fix version-info if not in a branch

Szilveszter Farkas szilveszter.farkas at gmail.com
Fri Sep 22 10:38:56 BST 2006


Hi,

I've discovered a bug in 'bzr version-info', if i don't call it in a branch:

phanatic at snatcher:~$ bzr version-info
bzr: ERROR: exceptions.NameError: global name 'NoWorkingTree' is not defined

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line
611, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line
573, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line
282, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.4/site-packages/bzrlib/cmd_version_info.py",
line 73, in run
    except NoWorkingTree:
NameError: global name 'NoWorkingTree' is not defined

bzr 0.11.0dev0 on python 2.4.3.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'version-info']

** please send this report to bazaar-ng at lists.ubuntu.com

The attached bundle should fix this problem.

Cheers,
Szilveszter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-version-info-noworkingtree.patch
Type: text/x-patch
Size: 898 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060922/aafb1ec9/attachment.bin 


More information about the bazaar mailing list