diff -r cc677803bad4 -r 503bb3af70fe mercurial/cmdutil.py --- a/mercurial/cmdutil.py Thu Aug 15 15:23:36 2013 -0500 +++ b/mercurial/cmdutil.py Thu Aug 15 16:49:27 2013 -0500 @@ -2057,7 +2057,8 @@ try: fctx = ctx[path] flags = fctx.flags() - mctx = context.memfilectx(fctx.path(), fctx.data(), + mctx = context.memfilectx(repo, + fctx.path(), fctx.data(), islink='l' in flags, isexec='x' in flags, copied=copied.get(path))