[PATCH RFC] commands: add 'setup' command to allow automatic hgrc configuration

Matt Mackall mpm at selenic.com
Thu Mar 12 14:20:03 CDT 2015


On Thu, 2015-03-12 at 19:53 +0100, Mathias De Maré wrote:
> On Thu, Mar 12, 2015 at 7:30 PM, Matt Mackall <mpm at selenic.com> wrote:
> 
> > On Thu, 2015-03-12 at 18:24 +0100, mathias.demare at gmail.com wrote:
> > > # HG changeset patch
> > > # User Mathias De Maré <mathias.demare at gmail.com>
> > > # Date 1426162870 -3600
> > > #      Thu Mar 12 13:21:10 2015 +0100
> > > # Node ID 0de0fc66a20a5f0658a6c6f1f5de20d4705f3de1
> > > # Parent  7cf9a9e0cf893e7ae82dc576a03c843fd6640438
> > > commands: add 'setup' command to allow automatic hgrc configuration
> >
> > I'm not terribly excited about this. It just delays people learning how
> > to edit their config file which is not that hard and much more useful in
> > the long run.
> >
> I agree that users do need to learn that in the long run. I was mostly
> thinking about this towards first impressions for users, and to allow them
> to enable some useful items which they otherwise don't know exist.
> I'd like to find a way to make the user experience for new users as good as
> possible.

> > Terrifying. I'm the type of user who's intimidated by editing a config
> > file.. so you're going to launch into a program that shows me four
> > different copies of that file all at once? I don't see how that's
> > helping.
> >
> Again a good point, perhaps not a good thing to implement after all.

Yeah, I don't think there's a good second-use story here. This creates a
problem for the whole setup idea though: if I use setup once, I'm now
stranded and need to learn/discover a whole new thing to edit my config.

I think we should focus on the conf -e experience. If we want to alias
that to setup, I might be behind that, since it's a more-than-one-use
thing. I actually find myself using conf -e a lot even though it's no
harder to type than 'emacs ~/.hgrc'. 

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list