Mercurial > public > mercurial-scm > hg
diff hgext/transplant.py @ 38370:c7eb9bce6041
py3: slice over bytes to prevent getting ascii values
Differential Revision: https://phab.mercurial-scm.org/D3792
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Mon, 18 Jun 2018 16:06:28 +0530 |
parents | 365a78daf735 |
children | b63dee7bd0d9 |
line wrap: on
line diff
--- a/hgext/transplant.py Mon Jun 18 16:06:01 2018 +0530 +++ b/hgext/transplant.py Mon Jun 18 16:06:28 2018 +0530 @@ -523,7 +523,8 @@ displayer.show(repo[node]) action = None while not action: - action = 'ynmpcq?'[ui.promptchoice(prompt)] + choice = ui.promptchoice(prompt) + action = 'ynmpcq?'[choice:choice + 1] if action == '?': for c, t in ui.extractchoices(prompt)[1]: ui.write('%s: %s\n' % (c, t))