[PATCH 2 of 2 STABLE] templater: strictly parse leading backslashes of '{' (issue4569) (BC)

Matt Mackall mpm at selenic.com
Wed May 6 17:02:14 CDT 2015


On Tue, 2015-05-05 at 08:55 +0900, Yuya Nishihara wrote:
> # HG changeset patch
> # User Yuya Nishihara <yuya at tcha.org>
> # Date 1430702254 -32400
> #      Mon May 04 10:17:34 2015 +0900
> # Branch stable
> # Node ID 857aebf5480deab7751de93e42d93237b09b838d
> # Parent  888d7a553f2b0ace8563ea9e3ef3ab1b8a50923e
> templater: strictly parse leading backslashes of '{' (issue4569) (BC)
> 
> Because double backslashes are processed as a string escape sequence, '\\{'
> should start the template syntax. On the other hand, r'' disables any sort
> of \-escapes, so r'\{' can go either way, never start the template syntax
> or always start it. I simply chose the latter, which means r'\{' is the same
> as '\\{'.

These are queued for stable, thanks.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list