upgrade: byteify a few error messages stable
authorMatt Harbison <matt_harbison@yahoo.com>
Sun, 12 Dec 2021 19:36:11 -0500
branchstable
changeset 48440 cb477edeca79
parent 48437 6e4999cb085e
child 48441 f21e7748c257
upgrade: byteify a few error messages These were flagged by pytype (which is currently disabled on this file due to another failure). Differential Revision: https://phab.mercurial-scm.org/D11905
mercurial/upgrade.py
--- a/mercurial/upgrade.py	Mon Dec 06 10:08:04 2021 +0100
+++ b/mercurial/upgrade.py	Sun Dec 12 19:36:11 2021 -0500
@@ -278,7 +278,7 @@
         ui.warn(_(b'repository upgraded to use share-safe mode\n'))
     except error.LockError as e:
         hint = _(
-            "see `hg help config.format.use-share-safe` for more information"
+            b"see `hg help config.format.use-share-safe` for more information"
         )
         if mismatch_config == b'upgrade-abort':
             raise error.Abort(
@@ -335,7 +335,7 @@
         ui.warn(_(b'repository downgraded to not use share-safe mode\n'))
     except error.LockError as e:
         hint = _(
-            "see `hg help config.format.use-share-safe` for more information"
+            b"see `hg help config.format.use-share-safe` for more information"
         )
         # If upgrade-abort is set, abort when upgrade fails, else let the
         # process continue as `upgrade-allow` is set