I tried naively just doing
@needs_write_lock def bind(self, other): self._ensure_real() return self._real_branch.bind(other)
however, this causes the hooks to be invoked with the _real_branch, which is wrong (and fortunately is caught by hook tests.)
I tried naively just doing
@needs_ write_lock
self._ ensure_ real() branch. bind(other)
def bind(self, other):
return self._real_
however, this causes the hooks to be invoked with the _real_branch, which is wrong (and fortunately is caught by hook tests.)