Filesets!

Arne Babenhauserheide arne_bab at web.de
Sun Jun 19 09:28:09 CDT 2011


On Saturday 18 June 2011 17:18:47 Matt Mackall wrote:
> # Find files based on contents
> hg cat "set:grep(spinach) and not grep(mushroom)"

That sounds really cool! 

It replaces long bash commands like 

hg cat $(hg sta -cn | grep spinach | sed s/.*mushroom.*// | xargs)

(which can have weird problems with spaces in filenames, escaping and such)

Is there a way to add a file named "set:<something>"? 

Best wishes, 
Arne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 316 bytes
Desc: This is a digitally signed message part.
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20110619/21517936/attachment.pgp>


More information about the Mercurial-devel mailing list