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

Laurens Holst laurens.nospam at grauw.nl
Sat Aug 10 07:59:54 CDT 2013


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?

~Laurens



More information about the Mercurial-devel mailing list