Read about our upcoming Code of Conduct on this issue

Commit f1ffa68e authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

fsmonitor: fix traceback about bytes and str incompatibility

This didn't work anymore in Python 3, switching to a `repr` based reporting does

Differential Revision: https://phab.mercurial-scm.org/D11708
parent 2ec5fbe26659
......@@ -560,8 +560,8 @@ def overridestatus(
for i, (s1, s2) in enumerate(zip(l1, l2)):
if set(s1) != set(s2):
f.write(b'sets at position %d are unequal\n' % i)
f.write(b'watchman returned: %s\n' % s1)
f.write(b'stat returned: %s\n' % s2)
f.write(b'watchman returned: %r\n' % s1)
f.write(b'stat returned: %r\n' % s2)
finally:
f.close()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment