[PATCH V2] revset: add 'only' revset
sean.michael.farley at gmail.com
Fri Feb 28 17:17:35 CST 2014
Matt Mackall <mpm at selenic.com> writes:
> On Fri, 2014-02-28 at 16:58 -0600, Sean Farley wrote:
>> Matt Mackall <mpm at selenic.com> writes:
>> > On Fri, 2014-02-28 at 14:40 -0800, Durham Goode wrote:
>> >> # HG changeset patch
>> >> # User Durham Goode <durham at fb.com>
>> >> # Date 1384621028 28800
>> >> # Sat Nov 16 08:57:08 2013 -0800
>> >> # Node ID 4cafddd6e1e13f4215a0e6711e9568f5933f62b3
>> >> # Parent 60c308b932ebd8a77f497ae285774fdced382eee
>> >> revset: add 'only' revset
>> > Queued for default, thanks.
>> > Perhaps you can add some examples to the rebase and histedit help?
>> >> hg histedit -r 'first(only(.))'
>> > Why does histedit need first? Can we fix that?
>> hisedit needs the first ancestor that you want to edit ... unless you're
>> suggesting always edit the entire branch?
> Ok. But if I give the first part of the branch and its (linear)
> descendants, can we teach histedit not to complain? Then first() won't
> be needed.
Ugh. I misread 'only(.)' to mean 'only this commit' ... yes, I agree
with teaching histedit about linear descendants.
More information about the Mercurial-devel