[PATCH] templates: fix missing closing brace in map-cmdline.status
Yuya Nishihara
yuya at tcha.org
Fri Jun 19 14:38:41 UTC 2015
# HG changeset patch
# User Yuya Nishihara <yuya at 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.
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")}'
More information about the Mercurial-devel
mailing list