[PATCH] histedit: allow configuring default behavior

Gregory Szorc gregory.szorc at gmail.com
Mon Feb 2 23:49:42 CST 2015


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20150202/2fd968ee/attachment.html>


More information about the Mercurial-devel mailing list