diff --git a/remotefilelog/shallowrepo.py b/remotefilelog/shallowrepo.py --- a/remotefilelog/shallowrepo.py +++ b/remotefilelog/shallowrepo.py @@ -157,12 +157,12 @@ else: return super(shallowrepository, self).file(f) - def filectx(self, path, changeid=None, fileid=None): + def filectx(self, path, *args, **kwargs): if self.shallowmatch(path): - return remotefilectx.remotefilectx(self, path, changeid, fileid) + return remotefilectx.remotefilectx(self, path, *args, **kwargs) else: - return super(shallowrepository, self).filectx(path, changeid, - fileid) + return super(shallowrepository, self).filectx(path, *args, + **kwargs) @localrepo.unfilteredmethod def commitctx(self, ctx, error=False):