[PATCH 0 of 2 v3] commands: add editconfig

Martin Geisler mg at lazybytes.net
Sun Sep 26 17:05:35 CDT 2010


Martin Geisler <mg at lazybytes.net> writes:

> Brodie Rao <brodie at bitheap.org> writes:
>
>> This series adds "hg editconfig".
>>
>> I've incorporated feedback on my previous patch submission:
>>
>> - "hg help showconfig" now mentions editconfig.
>
> I like these patches, but it just occured to me that instead of having
> two commands (editconfig and showconfig) to do different aspects of the
> same thing, maybe we could have
>
>   hg config        -> showconfig
>   hg config --edit -> editconfig
>
> I know this overlaps with the help topic of the same name, but we could
> rename that 'hg help configuration' or something like that.
>
> It's just that we don't have any other commands of this compound form.
>
> Maybe we could even make
>
>   hg config --set ui.username='Martin Geisler'
>
> work, provided we have a good library for editing the .ini files.

Hmm, on second thought, I don't think we should go further than what the
patches already do. It *is* actually strange if our users cannot edit a
text file we open for them, but if they are comfortable with using a
command line...

-- 
Martin Geisler

Mercurial links: http://mercurial.ch/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100927/523d1a06/attachment.pgp>


More information about the Mercurial-devel mailing list