Branch configuration
Robert Collins
robertc at robertcollins.net
Tue Jan 24 21:38:06 GMT 2006
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.
> Since in his mind, doing 'cp -ar' is creating a new branch, and you
> probably want an alternate target on the other end.
Yes. branches.conf is designed to let bzr infer it - though I've not
hooked that up primarily because I'm not using sftp push yes - its still
too slow. The idea was that the branch name (which is where it went awry
with another two-at-once implementation). Anyway the idea was that a
entry in branches.conf for the path above your branches would give them
all an implicit push location.
> 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.
push --remember ? Sets it for you.
> 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).
erm, I'd much rather get a warning that a branch I'm pushing is
incompatible with <old branches url>, than have a branch I had made from
a different one (say branch-formats from integration) accidentally push
to the old location with no warning.
Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060125/ba09388d/attachment.pgp
More information about the bazaar
mailing list