[PATCH 1 of 2] hgweb: show current search mode at search results

Alexander Plavin alexander at plav.in
Mon Aug 12 12:39:58 CDT 2013



10.08.2013, 17:00, "Laurens Holst" <laurens.nospam at grauw.nl>:
> Op 09-08-13 20:56, Alexander Plavin schreef:
>
>>  # HG changeset patch
>>  # User Alexander Plavin <alexander at plav.in>
>>  # Date 1374341357 -14400
>>  #      Sat Jul 20 21:29:17 2013 +0400
>>  # Node ID c982398539da5f6c32b98c9d68a339f527a8335a
>>  # Parent  e495c742bf85e0aef4919c94f08effa6effd3695
>>  hgweb: show current search mode at search results
>>
>>  This can help user in some corner cases or when he mistyped a
>>  function name in his query.
>>
>>  diff -r e495c742bf85 -r c982398539da mercurial/hgweb/webcommands.py
>>  --- a/mercurial/hgweb/webcommands.py Sat Jul 20 01:32:38 2013 +0400
>>  +++ b/mercurial/hgweb/webcommands.py Sat Jul 20 21:29:17 2013 +0400
>>  @@ -149,15 +149,15 @@
>>                yield web.repo[r]
>>
>>        searchfuncs = {
>>  -        'rev': revsearch,
>>  -        'kw': keywordsearch,
>>  -        'revset': revsetsearch,
>>  +        'rev': (revsearch, 'exact revision'),
>>  +        'kw': (keywordsearch, 'literal keyword'),
>>  +        'revset': (revsetsearch, 'revset expression'),
>
> Is this localisable?

Nope. Not sure if it is ok (enough) to add '_(...)' to it?

Hgweb isn't fully localisable already, by the way (by changing templates only), in particular some error messages.

>
> ~Laurens
>
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel


More information about the Mercurial-devel mailing list