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

Martin von Zweigbergk martinvonz at google.com
Tue Nov 11 11:19:09 CST 2014


On Tue Nov 11 2014 at 3:55:19 AM Pierre-Yves David <
pierre-yves.david at ens-lyon.org> wrote:

>
>
> 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.
>

OK, I agree. It might complicate parsing and readability (of the
expression) for little benefit.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20141111/cc4040df/attachment.html>


More information about the Mercurial-devel mailing list