--- a/mercurial/upgrade.py Mon Dec 13 14:37:16 2021 +0100
+++ b/mercurial/upgrade.py Mon Dec 13 14:44:16 2021 -0500
@@ -323,7 +323,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(
@@ -380,7 +380,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
--- a/tests/hghave.py Mon Dec 13 14:37:16 2021 +0100
+++ b/tests/hghave.py Mon Dec 13 14:44:16 2021 -0500
@@ -266,7 +266,10 @@
@check("suidbit", "setuid and setgid bit")
def has_suidbit():
- if getattr(os, "statvfs", None) is None or getattr(os, "ST_NOSUID") is None:
+ if (
+ getattr(os, "statvfs", None) is None
+ or getattr(os, "ST_NOSUID", None) is None
+ ):
return False
return bool(os.statvfs('.').f_flag & os.ST_NOSUID)