mercurial/manifest.py
branchstable
changeset 44247 c443b9ba6f63
parent 43778 888bd39ed555
child 44285 63d84c18247a
--- a/mercurial/manifest.py	Tue Feb 04 12:07:37 2020 +0100
+++ b/mercurial/manifest.py	Thu Jan 02 11:04:18 2020 -0800
@@ -21,6 +21,7 @@
 )
 from .pycompat import getattr
 from . import (
+    encoding,
     error,
     mdiff,
     pathutil,
@@ -867,9 +868,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),