mercurial/ui.py
changeset 5137 67afecb8d6cc
parent 5039 c87de77a7d9f
child 5337 8c5ef3b87cb1
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -403,11 +403,11 @@ class ui(object):
                 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"))