Filesets: wishlist
Yuya Nishihara
yuya at tcha.org
Fri Oct 21 09:07:17 UTC 2016
On Thu, 20 Oct 2016 00:09:19 +0900, Yuya Nishihara wrote:
> On Tue, 18 Oct 2016 17:47:05 +0200, Marcus Harnisch wrote:
> > Regarding a potential shell() directive, the benefit I am seeing is that it
> > would nicely nest with other directives. You would specify an input file
> > set, shell pipeline reading from stdin, as well as both input and output
> > delimiters (optional). A filter implementation (rather than my initial
> > per-file TRUE/FALSE proposal) would increase the throughput of some
> > expensive commands.
>
> Interesting. Is your "filter" proposal something like this?
>
> $ hg files 'set:(foo + bar + baz) & pipe("grep a", sep="\n")'
> bar
> baz
BTW, I should note that this would be vulnerable since revsets and filesets
are allowed in hgweb session. So we'd better to store the shell commands in
a separate config section like the extdata proposal.
More information about the Mercurial
mailing list