--- a/hgext/absorb.py Wed Mar 10 18:09:21 2021 +0100
+++ b/hgext/absorb.py Wed Jan 13 16:14:58 2021 +0100
@@ -102,6 +102,9 @@
class emptyfilecontext(object):
"""minimal filecontext representing an empty file"""
+ def __init__(self, repo):
+ self._repo = repo
+
def data(self):
return b''
@@ -212,7 +215,7 @@
if path in pctx:
fctxs.append(pctx[path])
else:
- fctxs.append(emptyfilecontext())
+ fctxs.append(emptyfilecontext(pctx.repo()))
fctxs.reverse()
# note: we rely on a property of hg: filerev is not reused for linear