mpm at selenic.com
Sun Jun 19 13:00:15 CDT 2011
On Sun, 2011-06-19 at 16:28 +0200, Arne Babenhauserheide wrote:
> 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>"?
As with any other pattern, you can prefix it with path: to make it a
literal. If for some reason, you have a file named "*.*", simply use
"path:*.*" to add it.
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel