[rfc] bzr --cd=/any/where rocks
Jelmer Vernooij
jelmer at samba.org
Tue Jan 27 22:52:08 GMT 2009
On Wed, 2009-01-28 at 00:37 +0200, Marius Kruger wrote:
> 2009/1/28 Jelmer Vernooij <jelmer at samba.org>
> I think it makes more sense to add a generic option to Bazaar
> that can
> be easily used and make use of that in more places than to add
> a global
> option.
>
> E.g. allowing "directory" in the takes_options array like we
> already
> allow "revision". What commands are there that you think could
> use -d
> but don't support it at the moment?
>
> thats sort of my point: some commands take a "directory" option and
> others
> take a -d option, and some does not implement something like this eg.
> missing
These options are the same thing -d is the short option name and
--directory is the long option name. I don't think there is
inconsistency in how this option works for the different commands,
except that it is not yet available for all commands.
> I want something that works exactly the same no matter what the
> command.
> I'm not suggesting that we remove there other options because they
> cater for something slightly different (eg. branch urls).
> I see --cd as a complementary thing.
In that case, I think --cd would be a bad idea. It just duplicates
functionality that is already there (-d).
> I also don't think it is actually necessary to change the
> directory in a
> lot of situations and that it can actually be harmful since
> *all* paths
> would be interpreted relative to the option specified in --cd.
> For
> example, take "bzr push -d ../somedir subdir". This would
> behave
> differently when used with an option that does an actual
> chdir.
> That is exactly what I want. --cd should behave exactly the same as if
> you
> actually cd'd into that dir and then run she command.
That's really functionality that should be in your shell in that case, I
don't think we should be replicating that.
Cheers,
Jelmer
--
Jelmer Vernooij <jelmer at samba.org> - http://samba.org/~jelmer/
Jabber: jelmer at jabber.fsfe.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 315 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090127/7406a4c3/attachment.pgp
More information about the bazaar
mailing list