Branch configuration
John Arbash Meinel
john at arbash-meinel.com
Tue Jan 24 21:22:28 GMT 2006
Aaron Bentley wrote:
> Jan Hudec wrote:
>
>>>I recently searched where push location is stored and was rather surprised to
>>>find it in ~/.bazaar/. Shouldn't the branch configuration be stored inside
>>>the branch? It would be easier to find for the user, a bit simpler (no [...]
>>>headers needed) and have the advantage of moving around with the branch.
>
>
> I agree it should be stored in the branch. I would think it should be
> in .bzr/branch.conf
>
> The [] headers are redundant anyway. They're from before we were using
> ConfigObj.
>
> Aaron
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
Since in his mind, doing 'cp -ar' is creating a new branch, and you
probably want an alternate target on the other end.
We debated for a little bit about what should go inside the branch, and
what should go outside of it. But never really decided on anything.
Right now, I feel like ~/.bazaar/branches.conf is to remote. It means if
I want to change the push target, I have to look somewhere other than
the branch, and then compare path names to make sure I get the right
one, etc.
Also, since branches.conf isn't ever cleaned out, it seems better to
have 'cp' copy the push target, than to accidentally have 'mv'
create/change a push target. (if you renamed a branch into a name that
you used to have, but perhaps forgot about).
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060124/4d334c81/attachment.pgp
More information about the bazaar
mailing list