[PATCH] revset: add keywords() and descs() functions which search for individual words

Matt Mackall mpm at selenic.com
Fri Aug 2 16:59:22 CDT 2013


On Sat, 2013-08-03 at 01:37 +0400, Alexander Plavin wrote:
> # HG changeset patch
> # User Alexander Plavin <alexander at plav.in>
> # Date 1374254768 -14400
> #      Fri Jul 19 21:26:08 2013 +0400
> # Node ID 20776e6f2fbf49d8807cbf308e102f5798bce7d9
> # Parent  d07c92b5a8382e8182cf63dbf6463c32140e9d14
> revset: add keywords() and descs() functions which search for individual words

Quiz: If the odds of me accepting feature X is x% and the odds of me
accepting feature Y is y%, what are the odds of me accepting both in one
patch?

a) max(x, y)
b) min(x, y)
c) x * y / 100
d) 0

If you know your probability, you might suspect the answer is (c), which
is always less than min(x, y): you're always decreasing your odds of
acceptance by combining. But if you know me, you'll realize the answer
is actually zero, because I reject such patches on principle.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list