[PATCH RFC] tests: require regexes in unified tests to be marked with " (re)"

Dan Villiom Podlaski Christiansen danchr at gmail.com
Tue Sep 21 17:31:21 CDT 2010


On 22 Sep 2010, at 00:18, Matt Mackall wrote:

> If we have something that does:
>
>  $ echo "foo (re)"
>  foo (re)

How about only considering lines that start with ‘^’ as regular  
expressions? This discussion reminds me of a line in the Zen of  
Python: “In the face of ambiguity, refuse the temptation to guess.” It  
might be worthwhile to make it so that normal output is only matched  
literally, so that — for example — dots and stars don't match anything  
unwanted. If regexp lines were prefixed with, say, ‘ ^’ instead of ‘   
’, there wouldn't be any guessing :)

--

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/20100922/daae3ffd/attachment.bin>


More information about the Mercurial-devel mailing list