colocated branches plugin?

Alexander Belchenko bialix at ukr.net
Tue Apr 21 14:04:42 BST 2009


Jelmer Vernooij пишет:
> Alexander Belchenko wrote:
>> Hi Jelmer,
>>
>> I found your colocated branches plugin. Unfortunately it cannot be
>> used on Windows at all because of lacks of symlinks there.
>>
>> What you think about using lightweight checkouts instead of symlinks
>> for branch pointers?

> I'm not sure if it would be possible to use lightweight checkouts to
> another branch in a subdirectory without a .bzr directory in between. If
> it is in fact possible, patches are most welcome :-)

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

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 "bzrlib\builtins.pyo", line 1564, in run
   File "bzrlib\bzrdir.pyo", line 486, in create_branch_convenience
   File "C:\work\Bazaar\plugins\colocated\__init__.py", line 114, in 
create_branch
   File "bzrlib\branch.pyo", line 1642, in initialize
   File "bzrlib\branch.pyo", line 1267, in _initialize_helper
   File "C:\work\Bazaar\plugins\colocated\__init__.py", line 98, in 
get_branch_transport
   File "bzrlib\urlutils.pyo", line 149, in join
TypeError: expected string or buffer

bzr 1.13.1 on python 2.5.4 (win32)


IIUC bzr init should create default branch named HEAD. Attached patch 
fixes this. I hope the fix is right. My branch with the fix is available
at lp:~bialix/bzr-colocated/trunk
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fix-init.patch
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20090421/d16e1744/attachment.diff 


More information about the bazaar mailing list