hgext3rd/evolve/rewriteutil.py
changeset 3298 f4b06f44d274
parent 3151 41c72b6e8568
child 3506 6b4272bbb65d
--- a/hgext3rd/evolve/rewriteutil.py	Sat Dec 16 23:52:32 2017 +0100
+++ b/hgext3rd/evolve/rewriteutil.py	Fri Dec 15 10:14:42 2017 +0100
@@ -201,10 +201,7 @@
             if path in headmf:
                 fctx = head[path]
                 flags = fctx.flags()
-                mctx = context.memfilectx(repo, fctx.path(), fctx.data(),
-                                          islink='l' in flags,
-                                          isexec='x' in flags,
-                                          copied=copied.get(path))
+                mctx = compat.memfilectx(repo, ctx, fctx, flags, copied, path)
                 return mctx
             return None