colocated branches plugin?

Alexander Belchenko bialix at
Tue Apr 21 14:12:17 BST 2009

Alexander Belchenko пишет:
> Jelmer Vernooij пишет:
>> Alexander Belchenko wrote:
> OK, I've looked at your code and did not found any symlinks. This is 
> good. It seems current trunk (revno.12) should work on win32.
> Unfortunately bzr init --duck failed with error:
> C:\Temp\111>bzr init --duck duck
> bzr: ERROR: exceptions.TypeError: expected string or buffer

After fixing this error I found another one:

C:\Temp\111\duck>bzr create-local-branch work
bzr: ERROR: exceptions.AttributeError: 'DuckBranchesContainer' object 
has no attribute 'create_branch'

Traceback (most recent call last):
   File "bzrlib\commands.pyo", line 716, in exception_to_return_code
   File "bzrlib\commands.pyo", line 911, in run_bzr
   File "bzrlib\commands.pyo", line 547, in run_argv_aliases
   File "C:\work\Bazaar\plugins\colocated\", line 265, in run
AttributeError: 'DuckBranchesContainer' object has no attribute 

The code in question is:

class cmd_create_local_branch(Command):
     """Create a new local branch """

     takes_args = ["name"]

     def run(self, name):
         bzrdir, relpath = BzrDir.open_containing(".")
         container = bzrdir.get_branches_container()
         branch = container.create_branch(name)
             wt = bzrdir.open_workingtree()
         except (NotLocalUrl, NoWorkingTree, NotBranchError):
         info("New local branch '%s' created.", name)

Any suggestions how can I fix this error?

More information about the bazaar mailing list