Branch configuration

Denys Duchier duchier at ps.uni-sb.de
Tue Jan 24 22:40:46 GMT 2006


Robert Collins <robertc at robertcollins.net> writes:

> On Tue, 2006-01-24 at 15:22 -0600, John Arbash Meinel wrote:
>
>> This was an old discussion back when Robert & I wrote push at the same
>> time. I think he *didn't* want the push target to be copied when doing a
>> 'cp -ar' which is why he put it in ~/.bazaar/branches.conf
>
> Right. Making a new branch by cp or 'bzr branch' should discard
> transient data.

I think this is loosely related to the "safe cache" issue raised by ddaa.
My current thinking on this issue is that it can be addressed as follows:

All (user) "private" data for a branch can be stored under:

	.bzr/private/XYZ

where XYZ is the user's private key for this branch.  Such a key can be computed
as the sha1 of:

	BRANCH_REALPATH:DEV:INO:USERNAME:PHRASE

or something like that, where PHRASE is an optional "private-phrase" user option
obtained from the BranchConfig.

"bzr status" should probably warn about the (harmless) existence of
.bzr/private/UVW where UVW is not the user's private key for this branch.

--Denys






More information about the bazaar mailing list