diff --git a/lib/codereview/codereview.py b/lib/codereview/codereview.py index 39cdc0f2734..01d14c4a23a 100644 --- a/lib/codereview/codereview.py +++ b/lib/codereview/codereview.py @@ -712,7 +712,10 @@ Examples: ''' def promptyesno(ui, msg): - return ui.promptchoice(msg, ["&yes", "&no"], 0) == 0 + if hgversion >= "2.7": + return ui.promptchoice(msg + " $$ &yes $$ &no", 0) == 0 + else: + return ui.promptchoice(msg, ["&yes", "&no"], 0) == 0 def promptremove(ui, repo, f): if promptyesno(ui, "hg remove %s (y/n)?" % (f,)):