Better name for dpush wanted
Jelmer Vernooij
jelmer at vernstok.nl
Fri Apr 17 13:45:11 BST 2009
Martin Pool wrote:
> 2009/4/17 Jelmer Vernooij <jelmer at vernstok.nl>:
>
>
>> If the user wants to just push to a non-Bazaar branch they should *not*
>> be using this option. They should just be using "bzr push".
>>
>> "bzr dpush" is only for users who want to push to a foreign vcs but
>> don't want to leave any references to Bazaar (e.g. bzr-related file or
>> revision properties in svn); in other words, they only want to push that
>> data that can be natively represented in the foreign vcs.
>>
>
> I'd still specify it as an option (like --lossy) to push.
>
> 1. It seems likely you're going to want to always turn this on for a
> particular destination repository, if that repository's policy is
> there should be no foreign metadata. If it's an option we can set it
> in locations.conf and then not remember to use it every time. (I's
> possible we can have an option that says "when I say push really do
> push-lossy" but then you're effectively giving this behaviour to
> push.)
>
That's a good point.
> 2. If this is going to be used only in exceptional circumstances, I
> think it's less prominent than being a whole new top-level command.
>
I'm not sure about this - dpush is hidden, the push options are shown to
users when they type "bzr help push".
> 3. It's possible (maybe unlikely) that we'd eventually want it to
> apply to other commands, like maybe 'merge -d TARGET --lossy thing'.
> This is a bit of a stretch maybe but it seems at least plausible that
> it's not really specific to push.
>
Perhaps it would be relevant to "bzr commit" (in a bound branch) or "bzr
pull" (into a Subversion working copy), as these create or copy
revisions. I'm not sure how common these are though, nobody has asked
for them yet.
The main problem I have with dpush as an option to push is that we'd
have to also add the options relevant to dpush to push and this clutters
the push UI. Right now there is just --no-rebase, but it's not unlikely
there will be more options in the future.
I wonder if it would be possible to have sections in the listings of
options in help? We could e.g. have a section for dpush-related options.
Samba already does this for most commands, and it makes it a bit easier
to find the right options in a list of two dozen or so.
Cheers,
Jelner
More information about the bazaar
mailing list