Filesets!
Matt Mackall
mpm at selenic.com
Sat Jun 18 22:18:47 UTC 2011
(I intended to wrap this up earlier in the week, but other stuff kept
popping up. So I've held off the freeze for another day to get this
wrapped up. Freeze starts now!)
The oft-discussed filesets feature is now pushed. This does for file
selection what revsets did for revision selection. It works just about
everywhere a pattern is accepted. So you can now do things like:
# remove those new binary files I didn't mean to add
hg remove "set:binary() and added() and size('>10M')"
and
# find files with weird encoding
$ hg locate "set:not binary() and not encoding('utf-8')"
contrib/hgk
tests/test-context.py.out
and
# Find files based on contents
hg cat "set:grep(spinach) and not grep(mushroom)"
Unlike revsets, this doesn't have a proper query optimizer yet, so be
aware that expressions like:
binary() and added()
can be significantly slower than:
added() and binary()
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list