[PATCH] histedit: allow configuring default behavior

Augie Fackler raf at durin42.com
Tue Feb 3 09:16:31 CST 2015


On Mon, Feb 02, 2015 at 09:49:42PM -0800, Gregory Szorc wrote:
> On Mon, Feb 2, 2015 at 4:47 PM, Sean Farley <sean.michael.farley at gmail.com>
> wrote:
>
> >
> > Durham Goode writes:
> >
> > > # HG changeset patch
> > > # User Durham Goode <durham at fb.com>
> > > # Date 1422922775 28800
> > > #      Mon Feb 02 16:19:35 2015 -0800
> > > # Node ID f146925438691d039aa3ea1146790fe85acfbbe6
> > > # Parent  8b88870cbd1eeefaee0af053ae36728f8c0a1847
> > > histedit: allow configuring default behavior
> > >
> > > Adds a configuration setting for allowing users to specify the default
> > behavior
> > > of 'hg histedit' without arguments. This saves user's from having to
> > manually
> > > figure out the bottom commit or a complicated revset. My current revset
> > of
> > > choice is "only(.) & draft() - ::merge()"
> > >
> > > The commits that histedit can work with is usually quite limited, so if
> > this
> > > feature ends up working well, we may want to consider making "only(.) &
> > draft()
> > > - ::merge()" the default behavior for everyone.
> >
> > For what it's worth, I agree that this (or something similar) should be
> > the default revset.
> >
>
> I don't like saying "me too," but, yeah, I really wish `hg histedit` did
> something reasonable by default. I've had multiple people come up to me
> with comments that histedit is too difficult to use out of the box. "It
> should just work." In the absence of changing the default behavior, I
> support this patch because it means I can have our interactive Mercurial
> config generator spit out something reasonable so more users have a good
> experience.

Please experiment with revsets for the default - it's been a little
unclear to me what the "right" revset is, so more input is better.

(Perhaps we should make a wiki page with a table of who's testing what. Dunno.)


> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel


More information about the Mercurial-devel mailing list