[PATCH RFC] revset: use '%' as an operator for 'only'

Pierre-Yves David pierre-yves.david at ens-lyon.org
Tue Nov 11 05:55:03 CST 2014



On 11/07/2014 06:40 AM, Sean Farley wrote:
>
> Martin von Zweigbergk writes:
>
>> On Thu Nov 06 2014 at 2:57:01 PM Sean Farley <sean.michael.farley at gmail.com>
>> wrote:
>>
>>> # HG changeset patch
>>> # User Sean Farley <sean.michael.farley at gmail.com>
>>> # Date 1415314518 28800
>>> #      Thu Nov 06 14:55:18 2014 -0800
>>> # Node ID 752f70bee3b0542ca36b1fecbb70c954d6017061
>>> # Parent  2d54aa5397cdb1c697673ba10b7618d5ac25c69e
>>> revset: use '%' as an operator for 'only'
>>>
>>> With this patch, we can make it much easier to specify 'only(A,B)' ->
>>> A%B. Similarly, 'only(A)' -> A%.
>>>
>>
>> That would let me send patches with 'hg email -r .%@'. Should the first
>> argument default to '.' so it's just '%@'?
>
> That's not a bad idea. I'll try implementing that.

Meh, "." is a very char to type, I'm not convinced it is worth adding a 
special case. The ^ and ~ operator does not default to . either.

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list