diff -r 76dccbbe73fd -r 6b9ad3a0c348 mercurial/upgrade_utils/engine.py --- a/mercurial/upgrade_utils/engine.py Wed Jul 21 15:34:35 2021 -0400 +++ b/mercurial/upgrade_utils/engine.py Wed Jul 21 15:50:17 2021 -0400 @@ -66,7 +66,7 @@ # drop the extension and the `data/` prefix path_part = path.rsplit(b'.', 1)[0].split(b'/', 1) if len(path_part) < 2: - msg = _('cannot recognize revlog from filename: %s') + msg = _(b'cannot recognize revlog from filename: %s') msg %= path raise error.Abort(msg) path = path_part[1]