changeset 44872:aa790f7c967a

filemerge: add __bytes__ for absentfilectx This will at _least_ aid some upcoming debugging. Differential Revision: https://phab.mercurial-scm.org/D8592
author Augie Fackler <augie@google.com>
date Thu, 28 May 2020 16:16:13 -0400
parents 17d928f8abaf
children 47b3c8383cc1
files mercurial/filemerge.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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