[PATCH 1 of 2] ui: add optional choices parameter to prompt()

Dirkjan Ochtman dirkjan at ochtman.nl
Tue Apr 28 09:29:34 CDT 2009


On Tue, Apr 28, 2009 at 16:26, Greg Ward <greg-hg at gerg.ca> wrote:
> (It might be nice to say what pat is supposed to be -- a regex object?
>  A string containing a regex?  Something else?  (I haven't read the
> code: should not be necessary to use the method!))

Also, I've been wondering if pat could be obsoleted in favor of
containment checking in choices. Or do we have actually
complex/interesting regexes anywhere?

Cheerse,

Dirkjan



More information about the Mercurial-devel mailing list