[PATCH 0 of 2 v3] commands: add editconfig

Brodie Rao brodie at bitheap.org
Wed Sep 22 20:31:32 CDT 2010


This series adds "hg editconfig".

I've incorporated feedback on my previous patch submission:

- "hg help showconfig" now mentions editconfig.

- "hg editconfig" now requires a repo unless -u/--user is specified.

- "hg editconfig -R" is now tested.

There are two things I haven't addressed yet but would like to:

1. hgrc(5) still doesn't mention this command. I'm not entirely sure
   where I should mention this. Wherever it goes, showconfig should be
   mentioned with it.

2. The templates are still hard-coded. I was thinking maybe the two
   example configs could be help topics, and simply copied in place
   before editing.

   On the other hand, I don't know what the topics should be called,
   and if they're going to gain full topics, I think the examples
   should be much more detailed than they are now.

This series also includes a variation on Mads' ui.editfile()
patch. I've erred on the side of caution and backwards compatibility:
ui.edit() still sets HGUSER, but ui.editfile() allows it to be
optional.


More information about the Mercurial-devel mailing list