[PATCH 7 of 7 v2] tests: add test-check-execute.t
Yuya Nishihara
yuya at tcha.org
Tue Dec 29 23:05:12 CST 2015
On Tue, 29 Dec 2015 23:43:44 -0500, timeless wrote:
> Ok, i've played around with hg grep. It's unusable.
>
> * a file that *used* to match something would be reported (e.py)
> * restricting revisions to the current one (-r .) means we wouldn't
> catch files added by FAT users
>
> $ hg files 'set:(**.py) and not exec()'|xargs hg grep -l -r .
> "^[^\n]*(env |/)python"
> $ hg files 'set:(**.py) and not exec()'|xargs hg grep -l "^[^\n]*(env |/)python"
> e.py:6
> d.py:3
> c.py:2
I meant it could use grep() fileset.
$ hg files 'set:**.py and not exec() and grep(r"^#!.*?python")'
More information about the Mercurial-devel
mailing list