[PATCH 1 of 4 V3] hgweb: add dynamic search function selection, depending on the query

Alexander Plavin alexander at plav.in
Wed Aug 28 04:37:56 CDT 2013



28.08.2013, 00:15, "Augie Fackler" <raf at durin42.com>:
> On Tue, Aug 27, 2013 at 3:27 AM, Alexander Plavin <alexander at plav.in> wrote:
>
>>>  This magic string gets repeated often, over several changesets. Could
>>>  I persuade you to give it a descriptive symbolic name so it's more
>>>  obvious what it is to future readers?
>>  Done. (assuming you mean 'kw', replaced with 'keyword')
>
> I meant something like
>
> _KEYWORD_SEARCH = 'kw'
>
> and then using the symbolic constant throughout.

I haven't noticed a place where such thing is used in Mercurial, could you please point at one of them (if there are any)?


More information about the Mercurial-devel mailing list