mercurial/patch.py
branchstable
changeset 29154 9d38a2061fd8
parent 28861 86db5cb55d46
child 29283 14eee72c8d52
equal deleted inserted replaced
29094:1111e84de635 29154:9d38a2061fd8
  1008                       '$$ &? (display help)')
  1008                       '$$ &? (display help)')
  1009             r = ui.promptchoice("%s %s" % (query, resps))
  1009             r = ui.promptchoice("%s %s" % (query, resps))
  1010             ui.write("\n")
  1010             ui.write("\n")
  1011             if r == 8: # ?
  1011             if r == 8: # ?
  1012                 for c, t in ui.extractchoices(resps)[1]:
  1012                 for c, t in ui.extractchoices(resps)[1]:
  1013                     ui.write('%s - %s\n' % (c, t.lower()))
  1013                     ui.write('%s - %s\n' % (c, encoding.lower(t)))
  1014                 continue
  1014                 continue
  1015             elif r == 0: # yes
  1015             elif r == 0: # yes
  1016                 ret = True
  1016                 ret = True
  1017             elif r == 1: # no
  1017             elif r == 1: # no
  1018                 ret = False
  1018                 ret = False