[PATCH] templater: do not strip non-quote characters from template config

Pierre-Yves David pierre-yves.david at ens-lyon.org
Tue Mar 29 20:37:50 EDT 2016



On 03/29/2016 08:26 AM, Yuya Nishihara wrote:
> # HG changeset patch
> # User Yuya Nishihara <yuya at tcha.org>
> # Date 1459068139 -32400
> #      Sun Mar 27 17:42:19 2016 +0900
> # Node ID b106317fea11feb11986aefadfbedc0f98efdf25
> # Parent  c4b727795d6a5770ec523c1965b464baed81097f
> templater: do not strip non-quote characters from template config
>
> Before this patch, the first and last characters were stripped from
> ui.logtemplate and template.* if they were the same. It could lead to a
> strange result as quotes are optional. See the test for example.

What a cute little funny bug.

Pushed, much thanks.

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list