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

Alexander Plavin alexander at plav.in
Sun Sep 1 01:31:38 CDT 2013



01.09.2013, 08:45, "Kevin Bullock" <kbullock+mercurial at ringworld.org>:
> On 28 Aug 2013, at 7:24 AM, Augie Fackler wrote:
>
>>  On Wed, Aug 28, 2013 at 5:37 AM, Alexander Plavin <alexander at plav.in> wrote:
>>>  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)?
>>  I guess there aren't. Hm. Kevin, do you have an opinion?
>
> I always have an opinion; sometimes it's even warranted :P
>
> A symbolic name would guard against typos in the string literal. I'm in favor.

Would it, really? Due to Python being interpreted, an exception would be raised only when the line of code executes, with both methods (a separate constant, or a string literal).

Btw, this is already crewed :)

>
> pacem in terris / мир / शान्ति / ‎‫سَلاَم‬ / 平和
> Kevin R. Bullock


More information about the Mercurial-devel mailing list