[PATCH] histedit: allow configuring default behavior

Sean Farley sean.michael.farley at gmail.com
Mon Feb 2 18:47:26 CST 2015


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.


More information about the Mercurial-devel mailing list