[ANN] bzr-colo 0.0.1: colocated branches using present technology

Neil Martinsen-Burrell nmb at wartburg.edu
Mon Jan 11 23:49:58 GMT 2010


On 2010-01-11 14:37 , Alexander Belchenko wrote:
> Neil Martinsen-Burrell пишет:
>> On 2010-01-11 03:06 , Alexander Belchenko wrote:
>>> Neil Martinsen-Burrell пишет:
>>>> This plugin does not add any new formats or objects to Bazaar, it
>>>> simply
>>>> provides convenience commands for working with a certain *convention*
>>>> for branch storage. This plugin provides the following commands
>>>>
>>>> * colo-init
>>>> * colo-branch
>>>> * colo-branches
>>>> * colo-fetch
>>>> * colo-clone
>>>> * colo-prune
>>>> * colo-clean
>>>> * colo-ify
>>>
>>> There is one more command required: to adjust the checkout location if
>>> user move the colo branch on the filesystem. Because bzr uses absolute
>>> path to master branch it's very necessary.
>>>
>>> Also see https://bugs.launchpad.net/bugs/330086
>>
>> It's mentioned in the Tutorial under Limitations. I suggest using
>> ``bzr switch --force`` there. From the root of the checkout, you can
>> use relative paths ``bzr switch --force ./.bzr/branches/trunk``.
>
> It seems you and Aaron missed my point.
>
> What if I want just update the lightweight checkout reference without
> switch to trunk?

You can update the lightweight checkout reference to any branch you want 
inside .bzr/branches

> And my current branch is not trunk?

Just ``bzr switch --force .bzr/branches/other-branch``.

> And I don't remember which branch is current?
 > And I have ten branches inside .bzr/branches?
 >
 > How can I know what I should switch --force?

This is trickier.  Then, we need to infer from the current (incorrect) 
content of .bzr/branch/location what the current branch name should be. 
  (Hmm. This shouldn't be too hard since .bzr/branches will most likely 
only occur once in the path inside .bzr/branch/location.  Then we can 
just figure out the mapping between . and the rest of the path there.) 
Could you file a bug on bzr-colo about this?  It probably does need a 
new command ``colo-fixup`` that uses knowledge of the particular 
structure at work her to reconnect things.

-Neil



More information about the bazaar mailing list