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

timeless timeless at gmail.com
Tue Apr 28 04:27:23 CDT 2009


On Tue, Apr 28, 2009 at 7:11 AM, Steve Borho <steve at borho.org> wrote:
> diff -r 344751cd8cb8 -r 2787668ae94d mercurial/ui.py
> @@ -267,9 +267,9 @@
> +    def prompt(self, msg, pat=None, default="y", choices={}):
>         """Prompt user with msg, read response, and ensure it matches pat

You need some punctuation here ^.

I might use ";", but am not certain.

> +        choices is intended for use by GUI implementations of ui()
>         If not interactive -- the default is returned



More information about the Mercurial-devel mailing list