[PATCH 7 of 7 v2] histedit: automatically select root with --commands

Augie Fackler raf at durin42.com
Wed Jan 6 15:21:40 CST 2016


> On Jan 5, 2016, at 5:08 PM, timeless <timeless at gmail.com> wrote:
> 
>> +    - Use --commands -- it will be the first linear changeset from the
>> +      specified changesets.
> 
> Augie Fackler wrote:
>> I'm...not sure what this means. Can you reword the help?
> 
> Imagine you have:
> a->b->c->d->e->f
> 
> and you do --commands "pick f; roll d; pick c; mess e", it will use
> `c` as the root.
> If you did --commands "pick f; edit b; roll d; pick c; mess e", it
> would use `b` as the root.
> 
> Having to manually say which the root is basically just annoying. It's
> obvious as long as you aren't using automatic drops. (I really
> wouldn't recommend this setting with automatic drops, although it
> wouldn't be any more harmful tan not using it, in fact, it'd probably
> be less harmful, since it'd only risk dropping things after you're
> oldest changeset, instead of also things before it...)

I mentioned this in IRC, but this is just too magical to me. Can anyone else write a convincing case for it?

(It’s partially too magical because of the implicit drop option, because if that and this are used together you’re well into footgun territory, which I desperately want to avoid.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20160106/3edaf5e8/attachment.pgp>


More information about the Mercurial-devel mailing list