filemerge: add __bytes__ for absentfilectx
authorAugie Fackler <augie@google.com>
Thu, 28 May 2020 16:16:13 -0400
changeset 44872 aa790f7c967a
parent 44871 17d928f8abaf
child 44873 47b3c8383cc1
filemerge: add __bytes__ for absentfilectx This will at _least_ aid some upcoming debugging. Differential Revision: https://phab.mercurial-scm.org/D8592
mercurial/filemerge.py
--- a/mercurial/filemerge.py	Thu May 28 16:17:28 2020 -0400
+++ b/mercurial/filemerge.py	Thu May 28 16:16:13 2020 -0400
@@ -98,6 +98,9 @@
         self._ctx = ctx
         self._f = f
 
+    def __bytes__(self):
+        return b'absent file %s@%s' % (self._f, self._ctx)
+
     def path(self):
         return self._f