Filesets: wishlist
Yuya Nishihara
yuya at tcha.org
Thu Oct 20 12:19:56 UTC 2016
On Wed, 19 Oct 2016 18:02:48 +0200, Marcus Harnisch wrote:
> Looks pretty much like it. Are you suggesting that pipe() exists?
No, there isn't.
> Although
> from the example command line it looks like pipe() doesn't accept a set as
> a parameter. Looking at the fileset documentation it appears that in
> general directives can be chained as expressions but not stacked. E.g.
>
> hg revert "set:copied() and binary() and size('>1M')"
>
> generates three independent subsets of all files and returns the set of all
> common files. IOW, I cannot use a cheap (e.g. fast) filter to comb through
> my files before passing the result to a more expensive filter. Is that
> correct? I really like revset with nesting, aliases, etc.
A revset/fileset predicate is effectively a filter. 'A and B' is evaluated
as 'b(a())'. Think that 'and' is something like a pipe '|' operation in unix
shells.
More information about the Mercurial
mailing list