# HG changeset patch # User Anton Shestakov # Date 2015-01-09 07:24:55 # Node ID ee1bf2b5a78096cb6a6964446e1914aeb94b9ae9 # Parent 304e69cb1ee95743e95a17f6f283e8ccf2bf66ea hgweb: add searchhint to templates/coal/map coal style uses every template (except header.tmpl) directly from paper style, but doesn't use paper/map file. Elements defined in such map files are used in templates as you would expect. For example, paper/search.tmpl contains '{searchhint}' and template engine replaces that with the actual hint. But when coal style reuses paper/search.tmpl, it needs to define searchhint in its map file as well, or template engine will not find it. So let's copy it from paper/map to coal/map. Before this change, if the coal style was selected, the hint for the search field in page header was present, but it was completely empty. Although the absence of searchhint in coal/map produced no error. diff --git a/mercurial/templates/coal/map b/mercurial/templates/coal/map --- a/mercurial/templates/coal/map +++ b/mercurial/templates/coal/map @@ -237,3 +237,6 @@ error = ../paper/error.tmpl urlparameter = '{separator}{name}={value|urlescape}' hiddenformentry = '' breadcrumb = '> {name|escape} ' + +searchhint = 'Find changesets by keywords (author, files, the commit message), revision + number or hash, or revset expression.'