mercurial/manifest.py
changeset 44285 63d84c18247a
parent 44269 48a1a974a92c
parent 44247 c443b9ba6f63
child 44286 bbecb6d80aa7
--- a/mercurial/manifest.py	Thu Feb 06 16:55:39 2020 -0500
+++ b/mercurial/manifest.py	Sat Feb 08 03:13:45 2020 +0530
@@ -21,6 +21,7 @@
 )
 from .pycompat import getattr
 from . import (
+    encoding,
     error,
     mdiff,
     pathutil,
@@ -868,9 +869,10 @@
         self._loadalllazy()
         return not self._dirs or all(m._isempty() for m in self._dirs.values())
 
+    @encoding.strmethod
     def __repr__(self):
         return (
-            b'<treemanifest dir=%s, node=%s, loaded=%s, dirty=%s at 0x%x>'
+            b'<treemanifest dir=%s, node=%s, loaded=%r, dirty=%r at 0x%x>'
             % (
                 self._dir,
                 hex(self._node),