# HG changeset patch # User Augie Fackler # Date 1590696973 14400 # Node ID aa790f7c967aa6ea43324860938151462a0ddf08 # Parent 17d928f8abaff86c35bcbe6029f8e2d2aefde5b7 filemerge: add __bytes__ for absentfilectx This will at _least_ aid some upcoming debugging. Differential Revision: https://phab.mercurial-scm.org/D8592 diff -r 17d928f8abaf -r aa790f7c967a 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