[PATCH] checkout --light
John A Meinel
john at arbash-meinel.com
Wed May 10 16:17:42 BST 2006
Martin Pool wrote:
> On 18 Apr 2006, David Allouche <david at allouche.net> wrote:
>> I love light checkouts. And I'm too lazy to call them "lightweight".
>>
>> So I would like the command to create them to change from "bzr co
>> --lightweight" to "bzr co --light", so much less finger wear.
>>
>> This is accomplished by the attached patch. The patch also does some
>> minor fixes to the docstring, accounting for the bulk of the diffs:
>>
>> * turn the reference to the non-existent basis option into a
>> comment, so it does not appear in the help text
>> * reflow the docstrings so they do not go past column 79.
>> --
>
> Taken into my branch.
>
> I was going to add --heavy, and my first impulse is that it would be an
> error to give both. However I suppose if people have an alias that
> turns on --heavy, then they should be able to say effectively
>
> bzr checkout --light --heavy
>
> to get back to the default behaviour. So then we would want the last
> option given to determine the result.
>
The way we handled it with 'bzr log' is to use a '--log-format=foo',
which could be supplied multiple times, and the last one taken.
I think ultimately we would still want to look into using optparse,
since it provides a little bit more standard functionality. It does
require some work, since optparse likes to call 'sys.exit()' unless
overridden.
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060510/d71ab1c1/attachment.pgp
More information about the bazaar
mailing list