comparison mercurial/filemerge.py @ 44931: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 d5ce99a6db52
children 40411ad2f5d2
comparison
equal deleted inserted replaced
44930:17d928f8abaf 44931:aa790f7c967a
95 other code is likely going to break with the values this returns.""" 95 other code is likely going to break with the values this returns."""
96 96
97 def __init__(self, ctx, f): 97 def __init__(self, ctx, f):
98 self._ctx = ctx 98 self._ctx = ctx
99 self._f = f 99 self._f = f
100
101 def __bytes__(self):
102 return b'absent file %s@%s' % (self._f, self._ctx)
100 103
101 def path(self): 104 def path(self):
102 return self._f 105 return self._f
103 106
104 def size(self): 107 def size(self):