[Updated] D11708: fsmonitor: fix traceback about bytes and str incompatibility

Alphare (Raphaël Gomès) phabricator at mercurial-scm.org
Thu Nov 4 20:46:08 UTC 2021


Closed by commit rHG6fb282ce9113: fsmonitor: fix traceback about bytes and str incompatibility (authored by Alphare).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D11708?vs=30928&id=31028

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D11708/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D11708

AFFECTED FILES
  hgext/fsmonitor/__init__.py

CHANGE DETAILS

diff --git a/hgext/fsmonitor/__init__.py b/hgext/fsmonitor/__init__.py
--- a/hgext/fsmonitor/__init__.py
+++ b/hgext/fsmonitor/__init__.py
@@ -560,8 +560,8 @@
             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()
 



To: Alphare, #hg-reviewers, marmoute
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20211104/e2836aaa/attachment.html>


More information about the Mercurial-patches mailing list