Probably bug: run `bzr bind` in already bound branch and got misleading error message

Alexander Belchenko bialix at ukr.net
Tue Nov 13 14:08:16 GMT 2007


Aaron Bentley пишет:
> Alexander Belchenko wrote:
>> Run bzr bind in already bound branch:
>>
>> bzr: ERROR: No location supplied and no previous location known
>>
>> IMO the error message is incorrect here, because "previous location" is
>> actually known.
> 
> No, I don't think so.
> 
> $ bzr init foo
> $ cd foo
> $ bzr bind ~/bzr/bzr.dev
> $ bzr unbind
> $ bzr bind
> $
> 
> If a previously-bound location is known, Bazaar will use it.  If it's
> not known, then bzr bind will give the error you saw.  Note that only
> branch format 6 can remember a previously-bound location.

As I said before I don't do unbind before I run just 'bzr bind'.
Branch still bound to another one.
And this is happens in Branch6.

BTW, there is error in 'bzr switch' command from bzrtools. When I try 
switch in heavyweight checkout (bound branch) I have this traceback:

C:\work\Bazaar\plugins-repo\qbzr>bzr switch C:\work\Bazaar\qbzr-repo\i18n\
bzr: ERROR: exceptions.NameError: global name 'transport' is not defined

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 "C:\work\Bazaar\plugins-repo\bzrtools\command.py", line 14, in 
run_argv_aliases
   File "bzrlib\commands.pyc", line 492, in run_argv_aliases
   File "C:\work\Bazaar\plugins-repo\bzrtools\__init__.py", line 635, in run
   File "C:\work\Bazaar\plugins-repo\bzrtools\switch.py", line 31, in switch
   File "C:\work\Bazaar\plugins-repo\bzrtools\switch.py", line 69, in 
set_branch_location
   File "C:\work\Bazaar\plugins-repo\bzrtools\switch.py", line 57, in 
_check_switch_branch_format
NameError: global name 'transport' is not defined

bzr 0.92.0.candidate.1 on python 2.5.1.final.0 (win32)
arguments: ['C:\\Program Files\\Bazaar\\bzr.EXE', 'switch', 
'C:\\work\\Bazaar\\qbzr-repo\\i18n\\']
encoding: 'cp1251', fsenc: 'mbcs', lang: None
plugins:
   bzrtools             C:\work\Bazaar\plugins-repo\bzrtools [0.92.1]
   depend               C:\work\Bazaar\plugins-repo\depend [unknown]
   gzipped_bundle       C:\work\Bazaar\plugins-repo\gzipped_bundle [unknown]
   heads                C:\work\Bazaar\plugins-repo\heads [unknown]
   launchpad            C:\Program 
Files\Bazaar\lib\library.zip\bzrlib\plugins\launchpad [unknown]
   multiparent          C:\Program 
Files\Bazaar\lib\library.zip\bzrlib\plugins\multiparent.pyc [unknown]
   qbzr                 C:\work\Bazaar\plugins-repo\qbzr [0.7.0]
   repo_push            C:\work\Bazaar\plugins-repo\repo_push [unknown]
   x_bit                C:\work\Bazaar\plugins-repo\x_bit [unknown]

** Please send this report to bazaar at lists.ubuntu.com
    with a description of what you were doing when the
    error occurred.



More information about the bazaar mailing list