--- a/hgext/fsmonitor/__init__.py Fri Nov 01 14:54:08 2019 +0100
+++ b/hgext/fsmonitor/__init__.py Fri Nov 01 10:57:31 2019 -0700
@@ -132,6 +132,7 @@
util,
)
from mercurial import match as matchmod
+from mercurial.utils import stringutil
from . import (
pywatchman,
@@ -207,8 +208,8 @@
if isinstance(ex, watchmanclient.Unavailable):
# experimental config: fsmonitor.verbose
if ex.warn and ui.configbool(b'fsmonitor', b'verbose'):
- if b'illegal_fstypes' not in str(ex):
- ui.warn(str(ex) + b'\n')
+ if b'illegal_fstypes' not in stringutil.forcebytestr(ex):
+ ui.warn(stringutil.forcebytestr(ex) + b'\n')
if ex.invalidate:
state.invalidate()
# experimental config: fsmonitor.verbose