relink: use sysstr to check for attribute presence
We do not need bytes here.
--- a/hgext/relink.py Wed Aug 30 14:22:55 2023 +0200
+++ b/hgext/relink.py Wed Aug 30 14:38:30 2023 +0200
@@ -60,8 +60,8 @@
command is running. (Both repositories will be locked against
writes.)
"""
- if not util.safehasattr(util, b'samefile') or not util.safehasattr(
- util, b'samedevice'
+ if not util.safehasattr(util, 'samefile') or not util.safehasattr(
+ util, 'samedevice'
):
raise error.Abort(_(b'hardlinks are not supported on this system'))