Push location hiding
Barry Warsaw
barry at python.org
Wed Jun 18 20:24:29 BST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Jun 18, 2008, at 1:43 PM, Aaron Bentley wrote:
> I think what you're asking is whether the push location is copied
> verbatim when branching. This is not the case. The push location is
> not set by default.
Yep, that's what I really wanted to know, and that's the answer I was
hoping for. Thanks.
> So when might it matter that the push location is stored in
> branch.conf?
>
> Generally if the branch is a shared branch, i.e. multiple developers
> are
> committing to, and pushing from, the same branch.
>
>>> We could set it in BOTH branch.conf and locations.conf, I suppose...
>>
>> I'd rather not clutter up my global locations.conf with lots of
>> branch
>> specific stuff.
>
> Well, the only purpose of locations.conf is to store stuff about a
> branch or subset of branches. In branch format 5, we used to *always*
> store the push location there.
I remember! I really disliked that because I felt it cluttered up my
locations.conf with branches that I'd long since deleted. It didn't
help that hacking that file didn't put blank lines between sections,
making it harder to read.
>> I do think that --remember ought to remember. Perhaps
>> there should be a .bzr/~user/locations.conf or some such that only
>> affects my branch on this machine.
>
> If it's stored in the branch, it's qualitatively different from
> ~/.bazaar/locations.conf and should behave more like branch.conf than
> locations.conf. Such a location could not store security-sensitive
> values like gpg_signing_command
>
> Besides, do we really want a fourth configuration location?
Not really. But a --remember that doesn't seems like a problem and I
don't like a cluttered locations.conf. OTOH, I really don't use --
remember very much these days anyway. ;)
- -Barry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
iQCVAwUBSFlg7XEjvBPtnXfVAQL2LQQAmYFGv6fAuzxDwoFIUU3t7XBzOCXAZlLo
3dPRim70MgiXArHHoTRcfLtW8zlZDLfTnh8OeJxHQw2+J29FkWvxJrii1hdJt7gz
ZJOzyXf92pzWkYPKvui8QG2NlBc5uxq35voGHOvNl5Mz6HU9tU9dh/nP6/nlda1a
9XW1kQCIFnk=
=epOK
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list