Concept of the day: filesets?

Benoit Boissinot bboissin at gmail.com
Wed Nov 17 14:18:11 CST 2010


On Wed, Nov 17, 2010 at 7:40 AM, Nicolas Dumazet <nicdumz at gmail.com> wrote:
> 2010/11/17 Matt Mackall <mpm at selenic.com>:
>> What if we applied the revset query language concept to file patterns?
>>
>> We have long had the ability to do:
>>
>>  hg ci "re:(foo|bar).*"
>>
>> We can specify re/glob/path just about wherever filenames are taken. If
>> we add a new set type, we can now do:
>>
>>  hg ci "set: modified() and contains('mpm') and exec() and not glob('**.py')"
>
> I'm afraid of duplication:
>
> find -not -name "*.py" -executable | xargs grep -l mpm | xargs hg st
> -mn | xargs hg ci
>

Funny since this command line will not work if you have spaces in the
filenames :)

regards,

Benoit


More information about the Mercurial-devel mailing list