Concept of the day: filesets?

Dan Villiom Podlaski Christiansen danchr at gmail.com
Tue Nov 16 15:43:52 CST 2010


On 16 Nov 2010, at 20:15, Matt Mackall wrote:

> 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')"
>
> Want to check in only files not in a subrepo?
>
>  hg ci "set: not subrepo()"
>
> Discuss.

The only argument against I can think of — off the top of my head — is  
backwards compatibility. I assume we don't mind requiring './' or  
something similar prepended to a file named "set:whatever"?

Google Code Search appears to find at least one file with such a name:
<http://www.google.com/codesearch?as_filename=set%3A.*&as_case=yes>

--

Dan Villiom Podlaski Christiansen
danchr at gmail.com


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1943 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20101116/f7e07d81/attachment.bin>


More information about the Mercurial-devel mailing list