# HG changeset patch # User Sean Farley # Date 1401754175 18000 # Node ID f87502fd4d65b2103ad3cec2df97f1ca7f065e88 # Parent 02f886e59ae67c327ddfc82825a3301f8b1b3512 stupid: call makememfilectx diff --git a/hgsubversion/stupid.py b/hgsubversion/stupid.py --- a/hgsubversion/stupid.py +++ b/hgsubversion/stupid.py @@ -386,8 +386,12 @@ def diff_branchrev(ui, svn, meta, branch # and this may actually imply a bug in getcopies if copied not in parentctx.manifest(): copied = None - return context.memfilectx(path=path, data=data, islink=islink, - isexec=isexe, copied=copied) + return compathacks.makememfilectx(repo, + path=path, + data=data, + islink=islink, + isexec=isexe, + copied=copied) return list(touched_files), filectxfn @@ -591,8 +595,12 @@ def fetch_branchrev(svn, meta, branch, b # and this may actually imply a bug in getcopies if copied not in parentctx.manifest(): copied = None - return context.memfilectx(path=path, data=data, islink=islink, - isexec=isexec, copied=copied) + return compathacks.makememfilectx(repo, + path=path, + data=data, + islink=islink, + isexec=isexec, + copied=copied) return files, filectxfn @@ -755,9 +763,12 @@ def convert_rev(ui, meta, svn, r, tbdelt if path in externals: if externals[path] is None: raise IOError(errno.ENOENT, 'no externals') - return context.memfilectx(path=path, data=externals[path], - islink=False, isexec=False, - copied=None) + return compathacks.makememfilectx(repo, + path=path, + data=externals[path], + islink=False, + isexec=False, + copied=None) for bad in bad_branch_paths[b]: if path.startswith(bad): raise IOError(errno.ENOENT, 'Path %s is bad' % path)