Mercurial > public > mercurial-scm > hg
diff mercurial/ui.py @ 5154:67afecb8d6cc
record: improve docs, improve prompts
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Thu, 09 Aug 2007 17:29:16 -0700 |
parents | c87de77a7d9f |
children | 8c5ef3b87cb1 |
line wrap: on
line diff
--- a/mercurial/ui.py Thu Aug 09 23:29:29 2007 +0200 +++ b/mercurial/ui.py Thu Aug 09 17:29:16 2007 -0700 @@ -403,11 +403,11 @@ pass return raw_input(prompt) - def prompt(self, msg, pat=None, default="y"): + def prompt(self, msg, pat=None, default="y", matchflags=0): if not self.interactive: return default try: r = self.readline(msg + ' ') - if not pat or re.match(pat, r): + if not pat or re.match(pat, r, matchflags): return r else: self.write(_("unrecognized response\n"))