revset: add "reversed" as a synonym for "reverse"
Daniel Colascione (SEATTLE)
dancol at fb.com
Tue Oct 13 22:13:27 CDT 2015
On 10/13/2015 08:22 AM, Augie Fackler wrote:
> On Mon, Oct 12, 2015 at 02:12:55PM -0700, Daniel Colascione (SEATTLE) wrote:
>> # HG changeset patch
>> # User Daniel Colascione <dancol at fb.com>
>> # Date 1444684285 25200
>> # Mon Oct 12 14:11:25 2015 -0700
>> # Node ID 348e3483614878ac1049c836f4f3bb36127cae27
>> # Parent a3fcc8e3136bd19012d28b863d6bf4429948c573
>> revset: add "reversed" as synonym for "reverse"
>
> I'm hesitant to do this, what's the benefit?
>
> I get that it matches Python, but I'm not sure that merits the
> duplicated name. Besides, hg tells you what you meant:
>
> augie$ hg log -r 'reversed(::@)'
> hg: parse error: unknown identifier: reversed
> (did you mean one of removes, reverse?)
I write a lot of Python. On the day I wrote this patch, I found myself
typing "reversed" instead of "reverse" three times in a single day. Of
course fixing the problem is trivial, but so is the patch, which can
reduce annoyance without costing anything.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20151013/dc963472/attachment.pgp>
More information about the Mercurial-devel
mailing list