diff -r 0449fb7729d7 -r a51328ba33ca mercurial/ui.py --- a/mercurial/ui.py Sun Dec 11 00:10:56 2022 -0500 +++ b/mercurial/ui.py Mon Dec 12 14:17:05 2022 -0500 @@ -1786,8 +1786,8 @@ """ return self._prompt(msg, default=default) - def _prompt(self, msg, **opts): - default = opts['default'] + def _prompt(self, msg, default=b'y', **opts): + opts = {**opts, 'default': default} if not self.interactive(): self._writemsg(self._fmsgout, msg, b' ', type=b'prompt', **opts) self._writemsg(