[PATCH] ui: prompt() takes sequence of responses in lieu of regexp
Martijn Pieters
mj at zopatista.com
Thu Apr 30 03:54:17 CDT 2009
On Thu, Apr 30, 2009 at 09:02, Alexander Solovyov
<piranha at piranha.org.ua> wrote:
>> if r in dict(choices or ()):
>
> This will result in False in case choices are empty. :-)
Drat, and the best solution to *that* is your version, because "r in
dict(choices or ((r,r),))" is just way to hackish and ugly. I'll take
my foot out of my mouth now. :-/
--
Martijn Pieters
More information about the Mercurial-devel
mailing list