[PATCH 1 of 2] showconfig: add --edit option for editing .hg/hgrc

Matt Mackall mpm at selenic.com
Wed Apr 28 18:48:58 CDT 2010


On Thu, 2010-04-29 at 01:27 +0200, Mads Kiilerich wrote:
> # HG changeset patch
> # User Mads Kiilerich <mads at kiilerich.com>
> # Date 1272496822 -7200
> # Node ID b2096a6e1d57b1c1161da46a7f9f072c33dc4add
> # Parent  61b835a5a6ee897415b94acf5703d21f374b4999
> showconfig: add --edit option for editing .hg/hgrc
> 
> Users should never touch any files in .hg - with .hg/hgrc being the primary
> exception.

First, please go look at the git-config manpage to see how much more is
needed to have anything even close to letting us say "you don't need to
poke in .hg/hgrc". And then consider how much harder to use and how much
more documentation you have to read to do anything non-trivial and how
much more fragile all that stuff is than simply saying "<editor of
choice> .hg/hgrc".

Your claim that we shouldn't have editable files in .hg, well that's
never been the case and people have never really complained about
accidentally editing their dirstate, so I think that's a non-issue. 

(The related idea that using your editor on a text file is hard for
people using an SCM is just ridiculous. Please, folks, don't bring it up
or I will be forced to ridicule it.)

-- 
http://selenic.com : development and support for Mercurial and Linux




More information about the Mercurial-devel mailing list