Patchwork templates: fix missing closing brace in map-cmdline.status

login
register
mail settings
Submitter Yuya Nishihara
Date June 19, 2015, 2:38 p.m.
Message ID <b95f0a5e20eafe3c4e15.1434724721@mimosa>
Download mbox | patch
Permalink /patch/9712/
State Accepted
Headers show

Comments

Yuya Nishihara - June 19, 2015, 2:38 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1434636507 -32400
#      Thu Jun 18 23:08:27 2015 +0900
# Node ID b95f0a5e20eafe3c4e152beba5c712acd7afcd8f
# Parent  85294076adceb3263056e366023cba2e88ace6ca
templates: fix missing closing brace in map-cmdline.status

Currently the parser does not validate the last closing brace, but future
patches will make it less permissive for this kind of syntax errors.
Matt Mackall - June 19, 2015, 9:57 p.m.
On Fri, 2015-06-19 at 23:38 +0900, Yuya Nishihara wrote:
> # HG changeset patch
> # User Yuya Nishihara <yuya@tcha.org>
> # Date 1434636507 -32400
> #      Thu Jun 18 23:08:27 2015 +0900
> # Node ID b95f0a5e20eafe3c4e152beba5c712acd7afcd8f
> # Parent  85294076adceb3263056e366023cba2e88ace6ca
> templates: fix missing closing brace in map-cmdline.status

Queued for default, thanks.

Patch

diff --git a/mercurial/templates/map-cmdline.status b/mercurial/templates/map-cmdline.status
--- a/mercurial/templates/map-cmdline.status
+++ b/mercurial/templates/map-cmdline.status
@@ -16,7 +16,7 @@  lfile_adds  = '{file_adds % "{ifcontains
                                          '{lfile_add}')}"}'
 lfile_add = '{label("status.added", "A {file}\n")}'
 
-lfile_copies_switch = '{file_copies_switch % "{lfile_copy_orig}{lfile_copy_dest}"'
+lfile_copies_switch = '{file_copies_switch % "{lfile_copy_orig}{lfile_copy_dest}"}'
 lfile_copy_orig = '{label("status.added", "A {name}\n")}'
 lfile_copy_dest = '{label("status.copied", "  {source}\n")}'