hgext/record.py
changeset 5751 bc475d1f74ca
parent 5285 3ef190234b55
child 5826 cc43d9f36ff2
equal deleted inserted replaced
5750:206b44764340 5751:bc475d1f74ca
   245         if resp_all[0] is not None:
   245         if resp_all[0] is not None:
   246             return resp_all[0]
   246             return resp_all[0]
   247         if resp_file[0] is not None:
   247         if resp_file[0] is not None:
   248             return resp_file[0]
   248             return resp_file[0]
   249         while True:
   249         while True:
   250             r = (ui.prompt(query + _(' [Ynsfdaq?] '), '[Ynsfdaq?]?$',
   250             r = (ui.prompt(query + _(' [Ynsfdaq?] '), '(?i)[Ynsfdaq?]?$')
   251                            matchflags=re.I) or 'y').lower()
   251                  or 'y').lower()
   252             if r == '?':
   252             if r == '?':
   253                 c = record.__doc__.find('y - record this change')
   253                 c = record.__doc__.find('y - record this change')
   254                 for l in record.__doc__[c:].splitlines():
   254                 for l in record.__doc__[c:].splitlines():
   255                     if l: ui.write(_(l.strip()), '\n')
   255                     if l: ui.write(_(l.strip()), '\n')
   256                 continue
   256                 continue