changeset 5154 | 67afecb8d6cc |
parent 5039 | c87de77a7d9f |
child 5337 | 8c5ef3b87cb1 |
--- 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"))