# HG changeset patch # User Augie Fackler # Date 2020-05-28 20:16:13 # 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 --git a/mercurial/filemerge.py b/mercurial/filemerge.py --- a/mercurial/filemerge.py +++ b/mercurial/filemerge.py @@ -98,6 +98,9 @@ class absentfilectx(object): 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